| От | Alvaro Herrera |
|---|---|
| Тема | Re: How to Run a pg_stats Query |
| Дата | |
| Msg-id | 20070515225029.GU12731@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | How to Run a pg_stats Query ("Y Sidhu" <ysidhu@gmail.com>) |
| Список | 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
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера