Search Postgresql Archives

Re: Logging question

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

 



Michael Fuhr <mike@xxxxxxxx> writes:
> On Mon, Jan 17, 2005 at 09:03:17PM -0500, Madison Kelly wrote:
>> Is there any way I can log and/or display database calls for a 
>> specific database?

> I don't know of a way to enable logging for a specific database,
> but you can enable logging for a specific user or session.

> ALTER USER johndoe SET log_statement TO TRUE;  -- 7.x

You forgot that ALTER DATABASE has this same option.  It might be that
ALTER USER is just as convenient, or even more so, for Madison's problem
... but it *can* be set at the database scope if needed.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux