pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to Run a pg_stats Query
2+ messages / 2 participants
[nested] [flat]
* How to Run a pg_stats Query
@ 2007-05-15 22:42 Y Sidhu <ysidhu@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Y Sidhu @ 2007-05-15 22:42 UTC (permalink / raw)
To: pgsql-performance
I turned on all the stats in the conf file (below) and restarted the server.
Question is, what's the name of the database and how do I run a simple
select query?
stats_start_collector = true
stats_command_string = true
stats_block_level = true
stats_row_level = true
stats_reset_on_server_start = true
--
Yudhvir Singh Sidhu
408 375 3134 cell
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to Run a pg_stats Query
@ 2007-05-15 22:50 Alvaro Herrera <alvherre@commandprompt.com>
parent: Y Sidhu <ysidhu@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Alvaro Herrera @ 2007-05-15 22:50 UTC (permalink / raw)
To: Y Sidhu <ysidhu@gmail.com>; +Cc: pgsql-performance
Y Sidhu escribió:
> I turned on all the stats in the conf file (below) and restarted the server.
> Question is, what's the name of the database and how do I run a simple
> select query?
>
> stats_start_collector = true
> stats_command_string = true
> stats_block_level = true
> stats_row_level = true
> stats_reset_on_server_start = true
Stats are present on all databases. As for the name of the tables, try
pg_stat_user_tables and pg_stat_activity for starters. There are a lot
more; check the documentation or a \d pg_stat* in psql.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-05-15 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-15 22:42 How to Run a pg_stats Query Y Sidhu <ysidhu@gmail.com>
2007-05-15 22:50 ` Alvaro Herrera <alvherre@commandprompt.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