pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [Fwd: Re: Optimize]
3+ messages / 3 participants
[nested] [flat]

* Re: [Fwd: Re: Optimize]
@ 2003-11-25 19:19 Gaetano Mendola <mendola@bigfoot.com>
  2003-11-25 22:06 ` Re: [Fwd: Re: Optimize] Torsten Schulz <comic@be-a-part.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Gaetano Mendola @ 2003-11-25 19:19 UTC (permalink / raw)
  To: pgsql-performance; +Cc: Torsten Schulz <comic@be-a-part.de>

Torsten Schulz wrote:
> Hi,
> 
>> You can see doing   select * from pg_stat_activity the
>> queries that are currently running on your server, and
>> do a explain analize on it to see which one is the
>> bottleneck. If you are running the 7.4 you can see on
>> the log the total ammount for each query.
> 
> 
> 
> 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.


Regards
Gaetano Mendola





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [Fwd: Re: Optimize]
  2003-11-25 19:19 Re: [Fwd: Re: Optimize] Gaetano Mendola <mendola@bigfoot.com>
@ 2003-11-25 22:06 ` Torsten Schulz <comic@be-a-part.de>
  2003-11-25 22:27   ` Re: [Fwd: Re: Optimize] Russell Garrett <rg@tcslon.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Torsten Schulz @ 2003-11-25 22:06 UTC (permalink / raw)
  To: pgsql-performance

Gaetano Mendola wrote:

> Torsten Schulz wrote:
>
>> Hi,
>>
>>> You can see doing   select * from pg_stat_activity the
>>> queries that are currently running on your server, and
>>> do a explain analize on it to see which one is the
>>> bottleneck. If you are running the 7.4 you can see on
>>> the log the total ammount for each query.
>>
>>
>>
>>
>> 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

Regards
Torsten Schulz




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [Fwd: Re: Optimize]
  2003-11-25 19:19 Re: [Fwd: Re: Optimize] Gaetano Mendola <mendola@bigfoot.com>
  2003-11-25 22:06 ` Re: [Fwd: Re: Optimize] Torsten Schulz <comic@be-a-part.de>
@ 2003-11-25 22:27   ` Russell Garrett <rg@tcslon.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Russell Garrett @ 2003-11-25 22:27 UTC (permalink / raw)
  To: Torsten Schulz <comic@be-a-part.de>; 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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-11-25 22:27 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 19:19 Re: [Fwd: Re: Optimize] Gaetano Mendola <mendola@bigfoot.com>
2003-11-25 22:06 ` Torsten Schulz <comic@be-a-part.de>
2003-11-25 22:27   ` Russell Garrett <rg@tcslon.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox