X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D34B1D1B432 for ; Thu, 4 Dec 2003 14:30:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 39544-08 for ; Thu, 4 Dec 2003 10:29:39 -0400 (AST) Received: from mail2.idcglobal.net (mail2.idcglobal.net [63.208.79.80]) by svr1.postgresql.org (Postfix) with ESMTP id F1A12D1B450 for ; Thu, 4 Dec 2003 10:29:34 -0400 (AST) Received: from mail.jmlafferty.com [63.208.79.199] by mail2.idcglobal.net with ESMTP (SMTPD32-6.06) id A38346C3011A; Thu, 04 Dec 2003 08:24:03 -0600 Received: from DBA1 [63.208.76.4] by mail.jmlafferty.com (SMTPD32-7.07) id A4D02080242; Thu, 04 Dec 2003 08:29:36 -0600 Message-ID: <006f01c3ba73$008be780$143264c8@jmlafferty.com> From: "Glenn Wiorek" To: "Ashok Chauhan" , References: <1070522017.1270.24.camel@chi> Subject: Re: see previous queries Date: Thu, 4 Dec 2003 08:29:18 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/34 X-Sequence-Number: 11542 > 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" To: 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) > >