Thiago Risso escreveu:
> Boa Noite a todos !
> 
> É o seguinte, preciso verificar a lista de consultas em execução no 
> momento. Já habilitei o coletor de estatísticas, mas mesmo assim não 
> consigo visualizá-las.
> Ativei os itens indicados aqui : 
> http://pgdocptbr.sourceforge.net/pg80/runtime-config.html#GUC-STATS-START-COLLECTOR
>  
> ;
> 
>         
> #--------------------------------------------------------------------------- 
> 
>         # RUNTIME STATISTICS
>         
> #---------------------------------------------------------------------------
> 
>         # - Statistics Monitoring -
> 
>         log_parser_stats = true
>         log_planner_stats = true
>         log_executor_stats = true
>         #log_statement_stats = true
>         # - Query/Index Statistics Collector -
> 
>         stats_start_collector = true
>         stats_command_string = true
>         stats_block_level = true
>         stats_row_level = true
>         stats_reset_on_server_start = true
> 
> 
> O unico problema é ao habilitar o log_statement_stats : 'FATAL:  invalid 
> value for parameter "log_statement_stats": 1'
> 


Em:
http://www.postgresql.org/docs/8.1/interactive/runtime-config-statistics.html
"log_statement_stats reports total statement statistics, while the 
others report per-module statistics. log_statement_stats cannot be 
enabled together with any of the per-module options."


> e mesmo assim o que tenho de retorno é isso :
> 
> # select * from pg_stat_database ;
>   datid  |    datname    | numbackends | xact_commit | xact_rollback | 
> blks_read | blks_hit
> ---------+---------------+-------------+-------------+---------------+-----------+----------
>  
> 
> 2323074 | db1       |           0 |           0 |             0 
> |         0 |        0
>    30958 | dbalpha   |           0 |           0 |             0 
> |         0 |        0
>   531818 | dbteste     |           0 |           0 |             0 
> |         0 |        0
>   646869 | dbbeta |           0 |           0 |             0 |         
> 0 |        0
>        1 | template1     |           0 |           0 |             0 
> |         0 |        0
>    17229 | template0     |           0 |           0 |             0 
> |         0 |        0
>  6952841 | dbgama         |           0 |           0 |             0 
> |         0 |        0
>  5268280 | dbx      |           0 |           0 |             0 
> |         0 |        0
> (8 rows)
> 
> # select * from pg_stat_activity ;
>  datid | datname | procpid | usesysid | usename | current_query | 
> query_start
> -------+---------+---------+----------+---------+---------------+-------------
> (0 rows)
> 
> 
> Bom .. é isso ai.. .VALEW


[]s
Osvaldo

                
_______________________________________________________ 
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. 
Registre seu aparelho agora! 
http://br.mobile.yahoo.com/mailalertas/ 
 

_______________________________________________
Grupo de Usuários do PostgreSQL no Brasil
Antes de perguntar consulte o manual
http://pgdocptbr.sourceforge.net/

Para editar suas opções ou sair da lista acesse a página da lista em:
http://pgfoundry.org/mailman/listinfo/brasil-usuarios

Responder a