pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pgsql-admin <pgsql-admin@fc.emc.com.ph>
To: pgsql-admin@postgresql.org
Subject: how long a backend stayed connected
Date: Wed, 19 Sep 2001 23:33:16 +0800
Message-ID: <fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph> (raw)

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
<cut>
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)
<cut>


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




Message-ID: <fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph>
Permalink:  ../fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph/
Also on:    postgresql.org/message-id/fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph

 · 

reply

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: pgsql-admin@fc.emc.com.ph
  Subject: Re: how long a backend stayed connected
  In-Reply-To: <fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph>
  References: <fc.000f567200e91202000f567200e91202.e9126c@fc.emc.com.ph>

* 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