From: Glenn Wiorek <gwiorek@jmlafferty.com>
To: Ashok Chauhan <ashok@kalculate.com>
To: pgsql-admin@postgresql.org
Subject: Re: see previous queries
Date: Thu, 4 Dec 2003 08:29:18 -0600
Message-ID: <006f01c3ba73$008be780$143264c8@jmlafferty.com> (raw)
References: <1070522017.1270.24.camel@chi>
> 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.htmlhttp://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)
>
>
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: gwiorek@jmlafferty.com, ashok@kalculate.com
Subject: Re: see previous queries
In-Reply-To: <006f01c3ba73$008be780$143264c8@jmlafferty.com>
References: <1070522017.1270.24.camel@chi> <006f01c3ba73$008be780$143264c8@jmlafferty.com>
* 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