From: Niclas Gustafsson <niclas.gustafsson@codesense.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: PG_XLOG grows and grows
Date: Wed, 15 May 2002 18:17:13 +0200
Message-ID: <008d01c1fc2b$f97719d0$b700a8c0@gmg> (raw)
In-Reply-To: <8768.1021477037@sss.pgh.pa.us>
Yes, that would be the preferred way to do it, if the problem would
occur more often then it does, I've seen it happen twice in three
months time.
I'd like to peek into the transaction that _has_ stalled and see what
It has done so far. I.e. the backend that is idle in transaction.
If that is not possible, I'll just have to turn on the information
as you mentioned below, and wait a month or two for it to occur again.
Regards,
Niclas Gustafsson
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane
Sent: den 15 maj 2002 17:37
To: Niclas Gustafsson
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] PG_XLOG grows and grows
"Niclas Gustafsson" <niclas.gustafsson@codesense.com> writes:
> Yes, I know that, I would like to know what commands the client
> has issued sofar in the transaction as this would help us to
> track down if there is some problems in the client, and which
> client that is stalling ( As we have a bunch of different clients
> Working towards the database).
Turn on debug_print_query, log_pid, log_timestamp, and perhaps
log_connections in postgresql.conf. The postmaster log will then
provide a pretty effective trace of what's going on.
BTW, in 7.2 you need to SIGHUP the postmaster after changing
postgresql.conf. I forget whether 7.1 expected that or not.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html
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: niclas.gustafsson@codesense.com, tgl@sss.pgh.pa.us
Subject: Re: PG_XLOG grows and grows
In-Reply-To: <008d01c1fc2b$f97719d0$b700a8c0@gmg>
References: <8768.1021477037@sss.pgh.pa.us> <008d01c1fc2b$f97719d0$b700a8c0@gmg>
* 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