Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run provided SQL on connection to PostgreSQL? #141

Open
zdila opened this issue May 25, 2020 · 1 comment
Open

How to run provided SQL on connection to PostgreSQL? #141

zdila opened this issue May 25, 2020 · 1 comment

Comments

@zdila
Copy link

zdila commented May 25, 2020

On a server we have two instances of map rendering services. One pre-renders in the background and other on HTTP request. We already run background service with lower system priority and we want to do the same for its postgres connection by executing SELECT set_backend_priority(pg_backend_pid(), 10); on DB connection.

I found no parameter in PostGIS for this. Is something like this actually possible?

Thanks.

@zdila
Copy link
Author

zdila commented Jul 6, 2020

Our workaround is to add such SQL to some layer. Example:

select set_backend_priority(pg_backend_pid(), 10), geometry, name, type from osm_waterways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant