Re: [Fwd: Re: Optimize] - Mailing list pgsql-performance

From Russell Garrett
Subject Re: [Fwd: Re: Optimize]
Date
Msg-id MKEGJINFADFODDNOKEJCGEJEEJAA.rg@tcslon.com
Whole thread Raw
In response to Re: [Fwd: Re: Optimize]  (Torsten Schulz <comic@be-a-part.de>)
List pgsql-performance
>>> with this query I see how much queries running, but the field
>>> current_query are free, so i can't see which queries are very slow.
>>
>>
>> You must perform that query with permission of  super_user.
>>
> I've made it in root-account with psql -U postgres - but i can't see
> the query

You must have these lines in your postgresql.conf for the query stats to be
collected:

stats_start_collector = true
stats_command_string = true

--------------------------------------------------------------------
Russ Garrett                                            russ@last.fm
                                                      http://last.fm


pgsql-performance by date:

Previous
From: Torsten Schulz
Date:
Subject: Re: Optimize
Next
From: Josh Berkus
Date:
Subject: Wierd context-switching issue on Xeon