pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
Cc: postgres sql list <pgsql-sql@postgresql.org>
Subject: Re: [NOVICE] Logging
Date: 30 Nov 2001 11:08:14 +0100
Message-ID: <1007114894.11088.13.camel@entwicklung01.cenes.de> (raw)
In-Reply-To: <C54EF5B83335D311BCB50000C11042B102C8C797@vodabemail1.vodacom.co.za>
References: <C54EF5B83335D311BCB50000C11042B102C8C797@vodabemail1.vodacom.co.za>

On Fri, 2001-11-30 at 10:39, Duncan Adams (DNS) wrote:
> Hi all
> 
> I was wondering if there is any way to track/log what sql commands have been
> send to the postgres database from an external source. For example, from a
> PHP/pearl script.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

if the corresponding configuration options in postgresql.conf
(esp. debug_print_query) are enabled, the postmaster outputs log
messages on std output. You can redirect these into a log file.

Markus Bertheau

view thread (4+ messages)  latest in thread

Message-ID: <1007114894.11088.13.camel@entwicklung01.cenes.de>
Permalink:  ../1007114894.11088.13.camel@entwicklung01.cenes.de/
Also on:    postgresql.org/message-id/1007114894.11088.13.camel@entwicklung01.cenes.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: twanger@bluetwanger.de, duncan.adams@vcontractor.co.za
  Subject: Re: [NOVICE] Logging
  In-Reply-To: <1007114894.11088.13.camel@entwicklung01.cenes.de>

* 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