Re: Can Log filename include database name?

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Francisco Reyes" <lists(at)stringsutils(dot)com>
Cc: "PostgreSQL general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can Log filename include database name?
Date: 2006-07-09 21:15:11
Message-ID: c2d9e70e0607091415y5b2c96bnc0392dcc0609cb0f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/7/06, Francisco Reyes <lists(at)stringsutils(dot)com> wrote:
> I am currently using a log with the file name format:
> log_filename = 'postgresql-%Y-%m.log'
>
> Is there any way to change the filename do start witht he database name?
>
> For now just added to add the database name to each line, but it would be
> usefull to have each DB written to it's own file. Or even better to be able
> to specify on a per database basis whether to log or not.
>

so you want a different logfile for every database you connect to?
where do you will log database shared operations like autovacuum, role
creation, maybe even a database creation, tablespace creation, etc...

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Morgan Lloyd 2006-07-09 21:19:42 Re: Procedural language functions across servers
Previous Message Mark Morgan Lloyd 2006-07-09 21:06:03 Re: Procedural language functions across servers