From: ajeru@topolyte.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7528: Spurious empty log file created
Date: Mon, 10 Sep 2012 15:05:24 +0000
Message-ID: <E1TB5YC-00080h-Qv@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 7528
Logged by: Alexander Jerusalem
Email address: ajeru@topolyte.com
PostgreSQL version: 9.2.0
Operating system: Linux (Ubuntu x86_64, kernel version 2.6.18)
Description:
I have the following log configuration in postgresql.conf:
log_destination = 'csvlog'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'pg-%Y-%m-%d_%H%M%S.log'
log_rotation_age = 1d
log_rotation_size = 10MB
After removing all files from pg_log and relaunching the postgres server,
pg_log contains two files instead of one: pg-xxx.log and pg-xxx.csv.
According to the documentation, only pg-xxx.csv should exist. And in fact
only pg-xxx.csv is actually written to whilst pg-xxx.log remains empty.
Using a .csv extenson or no extension at all for the log_filename setting
doesn't help either. Postgres always creates a file named exactly as the
log_filename setting says and a second one with .csv appended.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: ajeru@topolyte.com
Subject: Re: BUG #7528: Spurious empty log file created
In-Reply-To: <E1TB5YC-00080h-Qv@wrigleys.postgresql.org>
References: <E1TB5YC-00080h-Qv@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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