Re: [PERFORM] Re: How to track number of connections and hosts to Postgres cluster

2011-08-29 Thread Scott Marlowe
On Mon, Aug 29, 2011 at 11:55 PM, Venkat Balaji wrote: > If i notice high IO's and huge log generation, then i think Greg Spileburg > has suggested a good idea of using tcpdump on a different server. I would > use this utility and see how it works (never used it before). Greg > Spileburg, please  

Re: [PERFORM] Query optimization help

2011-08-29 Thread Ondrej Ivanič
Hi, On 30 August 2011 15:36, Szymon Kosok wrote: > Hello, > > I asked that question on StackOverflow, but didn't get any valuable > response, so I'll ask it here. :) > > I have such query: Could you please re-post your explain using this web site: http://explain.depesz.com/ and post links to Sta

Re: [PERFORM] Re: How to track number of connections and hosts to Postgres cluster

2011-08-29 Thread Venkat Balaji
Thanks to all for your very helpful replies ! As Greg Smith rightly said, i faced a problem of missing connections between the runs. I even ran the cron every less than a second, but, still that would become too many runs per second and later i need to take the burden of calculating every thing fr

[PERFORM] Query optimization help

2011-08-29 Thread Szymon Kosok
Hello, I asked that question on StackOverflow, but didn't get any valuable response, so I'll ask it here. :) I have such query: SELECT "spoleczniak_tablica"."id", "spoleczniak_tablica"."postac_id", "spoleczniak_tablica"."hash", "spoleczniak_tablica"."typ", "spoleczniak_tablica"."ikona", "spolecz

[PERFORM] Query optimization help

2011-08-29 Thread Szymon Kosok
Hello, I asked that question on StackOverflow, but didn't get any valuable response, so I'll ask it here. :) I have such query: SELECT "spoleczniak_tablica"."id", "spoleczniak_tablica"."postac_id", "spoleczniak_tablica"."hash", "spoleczniak_tablica"."typ", "spoleczniak_tablica"."ikona", "spolecz

Re: [PERFORM] 8.4 optimization regression?

2011-08-29 Thread Mark Kirkwood
On 24/08/11 17:22, Mark Kirkwood wrote: On 24/08/11 15:15, Tom Lane wrote: Hmmm ... this is structurally a pretty simple query, so I'm surprised that 8.3 and 8.4 see it very much differently. The relation-level estimates and plan choices are very nearly the same; the only thing that's changed

Re: [PERFORM] Performance with many updates

2011-08-29 Thread Tomas Vondra
On 29 Srpen 2011, 11:13, Tasdassa Asdasda wrote: > Hi. I have a table called work (id bigserial, userid int4, kind1 enum, > kind2 enum, kind3 enim, value bigint, modified timestamp) > Table will have about 2*10^6 rows (at same time - overall it can have > higher IDs but old records are eventually d

[PERFORM] Performance with many updates

2011-08-29 Thread Tasdassa Asdasda
Hi. I have a table called work (id bigserial, userid int4, kind1 enum, kind2 enum, kind3 enim, value bigint, modified timestamp) Table will have about 2*10^6 rows (at same time - overall it can have higher IDs but old records are eventually deleted (moved to separate archive table) therefore the