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 A3EDFD1B4CC for ; Thu, 4 Dec 2003 10:31:31 +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 04328-09 for ; Thu, 4 Dec 2003 06:31:02 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 60053D1B4C6 for ; Thu, 4 Dec 2003 06:30:59 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 89E7F1D022; Thu, 4 Dec 2003 12:34:13 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 6907D1CF94; Thu, 4 Dec 2003 12:34:13 +0200 (EET) Message-ID: <001c01c3ba52$0f0eab10$0b00a8c0@andy> From: "Andrei Bintintan" To: "Peter Childs" Cc: References: <1070522017.1270.24.camel@chi> <3FCF066D.5060008@sancharnet.in> Subject: Re: see previous queries Date: Thu, 4 Dec 2003 12:33:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/30 X-Sequence-Number: 11538 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" Cc: 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