Oi Danilo, log_rotation_age (integer)
When logging_collector is enabled, this parameter determines the maximum lifetime of an individual log file. After this many minutes have elapsed, a new log file will be created. Set to zero to disable time-based creation of new log files. This parameter can only be set in the postgresql.conf file or on the server command line. http://www.postgresql.org/docs/9.2/static/runtime-config-logging.html []'s *Matheus Mendonça* Co-founder | nazar.io 2014-07-07 23:07 GMT-03:00 Danilo Silva <[email protected]>: > Pessoal, > > Eu habilitei o logging_collector, e alterei o log_filename para > 'postgresql-%Y-%m-%d_%H.log'. Na minha intenção, eu esperava que fosse > gerado um arquivo de log por dia/hora, mas o postgres manteve tudo na mesma > hora (hora em que foi executado o restart). Pelo fato de ficar com um único > arquivo grande em MB, desabilitei os log no mesmo dia. Existe algum outro > parâmetro que deve ser alterado para poder gerar um arquivo por dia/hora? > > []s > Danilo > > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > >
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
