Re: Separate log for a specfic database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/28/2018 10:05 AM, David G. Johnston wrote:
On Wednesday, February 28, 2018, Ertan Küçükoğlu <ertan.kucukoglu@xxxxxxxxxxx <mailto:ertan.kucukoglu@xxxxxxxxxxx>> 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
    <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.

That is not exactly true.

Logging could be set up to use syslog and if the database name is in the log lines then some filtering and routing of hose messages could go into their own files.

This would require a mature syslog environment but it is possible.

Evan.





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux