Re: Statement logging for a particular database

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

 



"Yuan HOng" <hongyuan1306@xxxxxxxxx> writes:
> I am running PostgreSQL 7.4, and I'd like to turn on statement logging
> for only one database rather than the server instance.

> The log_statement = true option doesn't distinguish between databases.
> Is there another option?

This should work:
	ALTER DATABASE foo SET log_statement = true

			regards, tom lane


[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