"Yuan HOng" <hongyuan1306@gmail.com> 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