Re: [PERFORM] https://stackoverflow.com/questions/28844170/how-to-limit-the-memory-that-is-available-for-postgressql-server

2017-09-18 Thread Jonathan Rogers
tion of worker processes], you can limit the user that > owns the processes (in /etc/security/limits.conf) - which usually is > "postgres" when Postgresql is run as a service. The easiest way to impose a limit on the entire Postgres cluster is to run it in a container using Docker. For example you could use the image from hub.docker.com and run it with the "--memory" argument. https://hub.docker.com/_/postgres/ https://docs.docker.com/engine/reference/commandline/run/ -- Jonathan Rogers Socialserve.com by Emphasys Software jrog...@emphasys-software.com signature.asc Description: OpenPGP digital signature

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-20 Thread Jonathan Rogers
On 10/20/2015 03:45 AM, Pavel Stehule wrote: > > > 2015-10-20 8:55 GMT+02:00 Thomas Kellerer <mailto:spam_ea...@gmx.net>>: > > Jonathan Rogers schrieb am 17.10.2015 um 04:14: > >>> Yes, I have been looking at both plans and can see where they >

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-16 Thread Jonathan Rogers
On 10/14/2015 05:01 AM, Pavel Stehule wrote: > Hi > > 2015-10-14 9:38 GMT+02:00 Jonathan Rogers <mailto:jrog...@socialserve.com>>: > > I have a very complex SELECT for which I use PREPARE and then EXECUTE. > The first five times I run "explain (a

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-16 Thread Jonathan Rogers
On 10/16/2015 08:37 AM, Albe Laurenz wrote: > Jonathan Rogers wrote: >>> Look at the EXPLAIN ANALYZE output for both the custom plan (one of the >>> first five executions) and the generic plan (the one used from the sixth >>> time on) and see if you can find and fix

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Jonathan Rogers
On 10/14/2015 05:00 AM, Albe Laurenz wrote: > Jonathan Rogers wrote: >> I have a very complex SELECT for which I use PREPARE and then EXECUTE. >> The first five times I run "explain (analyze, buffers) execute ..." in >> psql, it takes about 1s. Starting wit

[PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Jonathan Rogers
the plans themselves yet, what could possibly cause the prepared statement to be re-planned? I have seen the same behavior on Postgres 9.2.10 and 9.4.1. -- Jonathan Rogers Socialserve.com by Emphasys Software jrog...@emphasys-software.com -- Sent via pgsql-performance mailing list (pgsql-p