From: Andrei Bintintan <andy@ar-sd.net>
To: Peter Childs <blue.dragon@blueyonder.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: see previous queries
Date: Thu, 4 Dec 2003 12:33:01 +0200
Message-ID: <001201c3ba51$fe7873d0$0b00a8c0@andy> (raw)
References: <1070522017.1270.24.camel@chi>
<3FCF066D.5060008@sancharnet.in>
<Pine.LNX.4.58.0312041021410.5372@bluedragon.homelinux.net>
Look in postgresql.conf file:
#
# Message display
#
server_min_messages = info # Values, in order of decreasing detail:
# debug5, debug4, debug3, debug2, debug1,
# info, notice, warning, error, log, fatal,
# panic
client_min_messages = info # Values, in order of decreasing detail:
# debug5, debug4, debug3, debug2, debug1,
# log, info, notice, warning, error
#silent_mode = false
log_connections = true
#log_pid = false
log_statement = true
log_duration = true
log_timestamp = true
These are the main log settings. After you modify this data's reload the
configuration files. (pg_ctl ... reload).
Best r.
Andy.
----- Original Message -----
From: "Peter Childs" <blue.dragon@blueyonder.co.uk>
Cc: <pgsql-admin@postgresql.org>
Sent: Thursday, December 04, 2003 12:26 PM
Subject: Re: [ADMIN] see previous queries
>
>
> On Thu, 4 Dec 2003, Sai Hertz And Control Systems wrote:
>
> >
> > Dear Ashok,
> >
> > Hope you are not using
> > Postgresql 7.4
> > if this is the case I think some insert /update statements are waiting
> > for commit command
> >
> > Regards,
> > V Kashyap
> >
> > >hi
> > >i am a new user in postgresql.
> > >problem:- in postgresql there is any command to see history (previous
> > >day queries) like as history command in linux.
> > >thank you
> > >
>
> postgres will log your queries. You need to configure it to do so.
> 7.4 also logs queries that take a long time. The logs go either to file or
> the system message log. depending on how you set it up in postgresql.conf.
> The log can not be used to rebuild your database :(
> psql also has a shell like history function.
>
> Peter Childs
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
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: andy@ar-sd.net, blue.dragon@blueyonder.co.uk
Subject: Re: see previous queries
In-Reply-To: <001201c3ba51$fe7873d0$0b00a8c0@andy>
References: <1070522017.1270.24.camel@chi> <3FCF066D.5060008@sancharnet.in> <Pine.LNX.4.58.0312041021410.5372@bluedragon.homelinux.net> <001201c3ba51$fe7873d0$0b00a8c0@andy>
* 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