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 26F40D1B45B for ; Thu, 4 Dec 2003 10:20:39 +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 03395-08 for ; Thu, 4 Dec 2003 06:20:10 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 24CD9D1B4C8 for ; Thu, 4 Dec 2003 06:20:08 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 08B443563D; Thu, 4 Dec 2003 02:20:05 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 0757F355F0; Thu, 4 Dec 2003 02:20:05 -0800 (PST) Date: Thu, 4 Dec 2003 02:20:05 -0800 (PST) From: Stephan Szabo To: Ashok Chauhan Cc: pgsql-admin@postgresql.org Subject: Re: see previous queries In-Reply-To: <1070522017.1270.24.camel@chi> Message-ID: <20031204021642.Y59241@megazone.bigpanda.com> References: <1070522017.1270.24.camel@chi> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/28 X-Sequence-Number: 11536 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.