Received: from miranda.emc.com.ph ([210.23.230.194]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8M6vGe17508 for ; Sat, 22 Sep 2001 02:57:26 -0400 (EDT) (envelope-from pgsql-admin@fc.emc.com.ph) Received: from calypso.emc.com.ph (calypso.emc.com.ph [203.167.64.20]) by miranda.emc.com.ph (Postfix) with ESMTP id F12A96B063 for ; Sat, 22 Sep 2001 14:57:06 +0800 (PHT) Received: from iaeptus.emc.com.ph (iaeptus.emc.com.ph [203.167.64.21]) by calypso.emc.com.ph (Postfix) with ESMTP id B2A4546D for ; Sat, 22 Sep 2001 15:01:58 +0800 (PHT) Received: from localhost (localhost.localdomain [127.0.0.1]) by iaeptus.emc.com.ph (Postfix) with ESMTP id 1E3C1601 for ; Sat, 22 Sep 2001 15:46:52 +0800 (PHT) Received: from jennifer.emc.com.ph (jennifer.emc.com.ph [203.167.64.3]) by iaeptus.emc.com.ph (Postfix) with ESMTP id 46FD55F8 for ; Sat, 22 Sep 2001 15:46:51 +0800 (PHT) Received: from fc.emc.com.ph (mnl.emc.com.ph [203.167.64.16]) by jennifer.emc.com.ph (Postfix) with ESMTP id 2EC1D2C2 for ; Sat, 22 Sep 2001 15:56:27 +0800 (PHT) Message-id: Date: Wed, 19 Sep 2001 23:33:16 +0800 Subject: how long backends stay connected To: pgsql-admin@postgresql.org From: "pgsql-admin" MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-10 X-Archive-Number: 200109/103 X-Sequence-Number: 2204 Hi Guys! I just want to know how to configure postgresql.conf such that it will show in /var/log/posgresql when a backend exits in PostgreSQL 7.1.3. Before, in PostgreSQL 7.0.3, I was able to determine the length in time of a backend connection by looking at line 'started: ...' and this line pg-703$ cat /var/log/postgresql Sep 16 07:04:57 pg-703 postgres[21383]: proc_exit(0) Sep 16 07:04:57 pg-703 postgres[21383]: shmem_exit(0) Sep 16 07:04:57 pg-703 postgres[21383]: exit(0) Here is how i started/configured PostgreSQL 7.1.3. pg-703$ cat /var/lib/pgsql/data/postmaster.opts /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data -B 64 -b /usr/bin/postgres -i -N 32 pg-703$ cat /var/lib/pgsql/data/pg_options verbose=2 query=1 syslog=1 hostlookup showportnumber Here is how my postgresql.conf (PostgreSQL 7.1.3) looks like pg-713$ cat /var/lib/pgsql/data/postgresql.conf tcpip_socket = true hostname_lookup = true show_source_port = true max_connections = 128 sort_mem = 20480 # 20M shared_buffers = 32768 # 256M syslog = 2 log_connections = true debug_print_query = true debug_pretty_print = true Thank you very much. sherwin