From: Wei Weng <wweng@kencast.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthew Vanecek <mevanecek@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: debug a mess
Date: Wed, 26 Feb 2003 16:10:12 -0500
Message-ID: <20030226161011.A28093@example.com> (raw)
In-Reply-To: <13032.1046208448@sss.pgh.pa.us>
References: <20030225155820.B24120@example.com>
<13032.1046208448@sss.pgh.pa.us>
On 25/02/03 16:27 -0500, Tom Lane wrote:
> Wei Weng <wweng@kencast.com> writes:
> > The entire code from PQconnect until PQfinish goes like this:
>
> That sure looks harmless. I wonder if there is something failing in the
> PQconnect() step (like the queries that libpq sends on its own)?
>
> I'd suggest enabling query logging --- see postgresql.conf, or just do
> export PGOPTIONS="--log_statement=1"
> before starting your program. (Check Admin Guide first, as this
> parameter got renamed recently.) Then look in the postmaster log to get
> a better idea of what's really going on.
<snip>
Where is postmaster log? I found a new file in /var/log/pgsql. I put
log_connections = yes and syslog = 2 into my postgresql.conf file and expect
something to happen. Restarted postgresql service on my redhat 7.3 box and
tried a couple of queries with psql utility. Nothing seemed to have been
logged in /var/log/pgsql.
Under /var/lib/pgsql/data, there isn't any new files appearing.
By the way, how do I check to see what kind of options had been used in my
postgresql build?
Thanks
Wei
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: wweng@kencast.com, tgl@sss.pgh.pa.us, mevanecek@yahoo.com
Subject: Re: debug a mess
In-Reply-To: <20030226161011.A28093@example.com>
* 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