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 54AB6D1E833; Sat, 24 Jan 2004 05:06:59 +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 55964-08; Sat, 24 Jan 2004 01:06:28 -0400 (AST) Received: from Gateway.bksys.co.in (unknown [61.3.252.132]) by svr1.postgresql.org (Postfix) with ESMTP id B2D17D1B47D; Sat, 24 Jan 2004 01:06:24 -0400 (AST) Received: from bksys.co.in (mail.bksys.co.in [192.168.1.1]) by Gateway.bksys.co.in (8.11.6/8.11.6) with ESMTP id i0O567u17422; Sat, 24 Jan 2004 10:36:07 +0530 Received: from Bhuvan.bksys.co.in (Bhuvan.bksys.co.in [192.168.1.71]) by bksys.co.in (8.11.6/8.8.5) with ESMTP id i0O567c09473; Sat, 24 Jan 2004 10:36:07 +0530 Subject: Re: Fw: postgres logging From: "A.Bhuvaneswaran" To: Stef Cc: pgsql-admin@postgresql.org, "pgsql-sql@postgresql.org" In-Reply-To: <20040123141853.3c6457ef.svb@ucs.co.za> References: <20040123141853.3c6457ef.svb@ucs.co.za> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0+MYNYOOayh+Xj4tMDIw" Message-Id: <1074921094.1630.1.camel@Bhuvan.bksys.co.in> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 24 Jan 2004 10:41:35 +0530 X-Filter-Version: 1.11.Cvg (Gateway.bksys.co.in) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/184 X-Sequence-Number: 12047 --=-0+MYNYOOayh+Xj4tMDIw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > The postmaster logs to a separate log file, but at the moment > it's impossible to tell which sql comes from which connection. > Is there an easy way to accomplish this? >=20 The PID of the connected process is prepended to every log statement. You can make use of this to know which sql comes from which connection. Regards, A.Bhuvaneswaran --=-0+MYNYOOayh+Xj4tMDIw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQBAEf6GL2UFujVh8ToRAt1QAJ9BPPbIRaz7J80cX38pDzKOhBJrTACfVpZL VOy1KI8gvk6QPdbQWbIkmyA= =DleT -----END PGP SIGNATURE----- --=-0+MYNYOOayh+Xj4tMDIw--