pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedsee previous queries
8+ messages / 7 participants
[nested] [flat]
* see previous queries
@ 2003-12-04 07:13 Ashok Chauhan <ashok@kalculate.com>
2003-12-04 10:03 ` Re: see previous queries Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 10:20 ` Re: see previous queries Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-12-04 10:28 ` Re: see previous queries Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 14:29 ` Re: see previous queries Glenn Wiorek <gwiorek@jmlafferty.com>
0 siblings, 4 replies; 8+ messages in thread
From: Ashok Chauhan @ 2003-12-04 07:13 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
@ 2003-12-04 10:03 ` Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 10:26 ` Re: see previous queries Peter Childs <blue.dragon@blueyonder.co.uk>
3 siblings, 1 reply; 8+ messages in thread
From: Sai Hertz And Control Systems @ 2003-12-04 10:03 UTC (permalink / raw)
To: Ashok Chauhan <ashok@kalculate.com>; +Cc: pgsql-admin
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
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>.
>
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
2003-12-04 10:03 ` Re: see previous queries Sai Hertz And Control Systems <sank89@sancharnet.in>
@ 2003-12-04 10:26 ` Peter Childs <blue.dragon@blueyonder.co.uk>
2003-12-04 10:33 ` Re: see previous queries Andrei Bintintan <andy@ar-sd.net>
2003-12-04 10:33 ` Re: see previous queries Andrei Bintintan <klodoma@ar-sd.net>
0 siblings, 2 replies; 8+ messages in thread
From: Peter Childs @ 2003-12-04 10:26 UTC (permalink / raw)
To: ; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
2003-12-04 10:03 ` Re: see previous queries Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 10:26 ` Re: see previous queries Peter Childs <blue.dragon@blueyonder.co.uk>
@ 2003-12-04 10:33 ` Andrei Bintintan <andy@ar-sd.net>
1 sibling, 0 replies; 8+ messages in thread
From: Andrei Bintintan @ 2003-12-04 10:33 UTC (permalink / raw)
To: Peter Childs <blue.dragon@blueyonder.co.uk>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
2003-12-04 10:03 ` Re: see previous queries Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 10:26 ` Re: see previous queries Peter Childs <blue.dragon@blueyonder.co.uk>
@ 2003-12-04 10:33 ` Andrei Bintintan <klodoma@ar-sd.net>
1 sibling, 0 replies; 8+ messages in thread
From: Andrei Bintintan @ 2003-12-04 10:33 UTC (permalink / raw)
To: Peter Childs <blue.dragon@blueyonder.co.uk>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
@ 2003-12-04 10:20 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
3 siblings, 0 replies; 8+ messages in thread
From: Stephan Szabo @ 2003-12-04 10:20 UTC (permalink / raw)
To: Ashok Chauhan <ashok@kalculate.com>; +Cc: pgsql-admin
On Wed, 4 Dec 2003, Ashok Chauhan wrote:
> 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.
Not precisely. For the backend, you can log the statements that are run
by changing the postgresql.conf and use the log.
In psql, you can get something similar to history with \s I believe, but
that's only for your history not the entire server's history.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
@ 2003-12-04 10:28 ` Sai Hertz And Control Systems <sank89@sancharnet.in>
3 siblings, 0 replies; 8+ messages in thread
From: Sai Hertz And Control Systems @ 2003-12-04 10:28 UTC (permalink / raw)
To: Ashok Chauhan <ashok@kalculate.com>; +Cc: pgsql-admin
Dear Ashok ,
>hi
>i am a new user in postgresql.
>
>
If you are from Kalculate team which
developed first Financial software in India with QT and PostgreSQL as
back end then
for me this is a prank that a member of Kalculate team addresses
himself to be new to PostgreSQL.
Chauhan saab give us some of your knowledge and please do not address
yourself as NEW TO PostgreSQL.
Regards,
V Kashyap
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: see previous queries
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
@ 2003-12-04 14:29 ` Glenn Wiorek <gwiorek@jmlafferty.com>
3 siblings, 0 replies; 8+ messages in thread
From: Glenn Wiorek @ 2003-12-04 14:29 UTC (permalink / raw)
To: Ashok Chauhan <ashok@kalculate.com>; pgsql-admin
> problem:- in postgresql there is any command to see history (previous
> day queries) like as history command in linux.
In addition to server and client logging levels adjusted via the
postgresql.config file, psql also has a
command history like bash that is preserved between sessions. The command
history of psql
can be adjusted by setting variables in the ~/.psqlrc config file. See the
PostgresSQL
reference document for more info on psql.
http://www.postgresql.org/docs/current/static/app-psql.html
http://www.postgresql.org/docs/current/interactive/app-psql.html
Some examples below:
HISTCONTROL
If this variable is set to ignorespace, lines which begin with a space are
not entered into the history
list. If set to a value of ignoredups, lines matching the previous history
line are not entered. A value
of ignoreboth combines the two options. If unset, or if set to any other
value than those above, all
lines read in interactive mode are saved on the history list.
Note: This feature was shamelessly plagiarized from bash.
HISTSIZE
The number of commands to store in the command history. The default value is
500.
Note: This feature was shamelessly plagiarized from bash.
----- Original Message -----
From: "Ashok Chauhan" <ashok@kalculate.com>
To: <pgsql-admin@postgresql.org>
Sent: Thursday, December 04, 2003 1:13 AM
Subject: [ADMIN] see previous queries
>
>
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2003-12-04 14:29 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 07:13 see previous queries Ashok Chauhan <ashok@kalculate.com>
2003-12-04 10:03 ` Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 10:26 ` Peter Childs <blue.dragon@blueyonder.co.uk>
2003-12-04 10:33 ` Andrei Bintintan <andy@ar-sd.net>
2003-12-04 10:33 ` Andrei Bintintan <klodoma@ar-sd.net>
2003-12-04 10:20 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-12-04 10:28 ` Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-04 14:29 ` Glenn Wiorek <gwiorek@jmlafferty.com>
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