From al@secpay.com Thu Feb 20 14:03:58 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CF336474E61 for ; Thu, 20 Feb 2003 09:03:58 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 83949-09 for ; Thu, 20 Feb 2003 09:03:48 -0500 (EST) Received: from office-t1.tonbridge.secpay.com (unknown [212.24.80.174]) by postgresql.org (Postfix) with ESMTP id B7286474E4F for ; Thu, 20 Feb 2003 09:03:47 -0500 (EST) Received: from SECPAY80 ([192.168.1.80]) by office-t1.tonbridge.secpay.com with esmtp; Thu, 20 Feb 2003 14:03:28 +0000 Message-ID: <01d001c2d8e8$e3031ec0$5001a8c0@SECPAY80> From: "Al Sutton" To: pgsql-admin@postgresql.org Subject: Logging for psql only Date: Thu, 20 Feb 2003 14:03:46 -0000 Organization: SECPay Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01CD_01C2D8E8.E2D9C4D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/331 X-Sequence-Number: 7529 This is a multi-part message in MIME format. ------=_NextPart_000_01CD_01C2D8E8.E2D9C4D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, 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. ------=_NextPart_000_01CD_01C2D8E8.E2D9C4D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,

Does anyone have a solution to the following situation;
 
I have an application which uses postgresql as its database, I also ha= ve=20 technicians who need to made occasional data changes using psql, is there a= ny=20 way to log the changes made by the technicians without logging the SQL=20 statements from the application?
 
Al.
------=_NextPart_000_01CD_01C2D8E8.E2D9C4D0-- From olleg@telecom.mipt.ru Fri Feb 21 08:55:36 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1E317474E5C for ; Fri, 21 Feb 2003 03:55:36 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 51418-04 for ; Fri, 21 Feb 2003 03:55:25 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 70069474E4F for ; Fri, 21 Feb 2003 03:55:25 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 418D443A92F; Fri, 21 Feb 2003 03:55:25 -0500 (EST) From: Oleg Samoylov X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Logging for psql only Date: Fri, 21 Feb 2003 11:55:24 +0300 Organization: MIPT Telecom Lines: 16 Message-ID: <3E55E97C.5070801@telecom.mipt.ru> References: <01d001c2d8e8$e3031ec0$5001a8c0@SECPAY80> Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: ru, en To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/346 X-Sequence-Number: 7544 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 From pgman@candle.pha.pa.us Thu Mar 6 03:10:45 2003 X-Original-To: pgsql-admin@postgresql.org Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id AB1D2474E53 for ; Wed, 5 Mar 2003 22:10:45 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h263Adx04272; Wed, 5 Mar 2003 22:10:39 -0500 (EST) From: Bruce Momjian Message-Id: <200303060310.h263Adx04272@candle.pha.pa.us> Subject: Re: Logging for psql only In-Reply-To: <3E55E97C.5070801@telecom.mipt.ru> To: Oleg Samoylov Date: Wed, 5 Mar 2003 22:10:39 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200303/41 X-Sequence-Number: 7689 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