Re: Separate log for a specfic database

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ertan Küçükoğlu <ertan(dot)kucukoglu(at)1nar(dot)com(dot)tr>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Separate log for a specfic database
Date: 2018-02-28 18:05:39
Message-ID: CAKFQuwZK0J04WOixt=PEw5QsM=wLw_OMq6x8S8X9K1JTJjccOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wednesday, February 28, 2018, Ertan Küçükoğlu <
ertan(dot)kucukoglu(at)1nar(dot)com(dot)tr> wrote:

> Hello,
>
> I am using PostgreSQL 9.6.6 on Debian 9 Stretch system. Installed using
> apt-get.
> I wonder if I can have two log files. One for complete database server and
> another for one specific database in the server.
> I have already read below link, but cannot understand if that is possible,
> or how.
> https://www.postgresql.org/docs/9.6/static/runtime-config-logging.html
>
>
When it says:

" This parameter can only be set in the postgresql.conf file or on the
server command line. "

It is scoped to the cluster and all databases therein. To do what you
desire you would need to put the unique database into its own cluster.

David J.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rui DeSousa 2018-02-28 18:11:54 Re: Reliable WAL file shipping over unreliable network
Previous Message scott ribe 2018-02-28 18:05:19 Re: Reliable WAL file shipping over unreliable network