From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Oleg Samoylov <olleg@jane.telecom.mipt.ru>
Cc: pgsql-admin@postgresql.org
Subject: Re: Logging for psql only
Date: Wed, 5 Mar 2003 22:10:39 -0500 (EST)
Message-ID: <200303060310.h263Adx04272@candle.pha.pa.us> (raw)
In-Reply-To: <3E55E97C.5070801@telecom.mipt.ru>
If you want to log everything via psql, you can use "SET log_statement
TO on" inside .psqlrc and that will show all psql commands in the server
logs, or you can use per-user settings using ALTER USER, all in 7.3.
---------------------------------------------------------------------------
Oleg Samoylov wrote:
> Al Sutton wrote:
> > Does anyone have a solution to the following situation;
> >
> > I have an application which uses postgresql as its database, I also have te=
> > chnicians who need to made occasional data changes using psql, is there any=
> > way to log the changes made by the technicians without logging the SQL sta=
> > tements from the application?
> >
> > Al.
>
> At http://gborg.postgresql.org you can find one or two data change
> logging function working per user.
>
> --
> Olleg Samoylov
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, olleg@jane.telecom.mipt.ru
Subject: Re: Logging for psql only
In-Reply-To: <200303060310.h263Adx04272@candle.pha.pa.us>
References: <3E55E97C.5070801@telecom.mipt.ru> <200303060310.h263Adx04272@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox