Re: PG_XLOG grows and grows

From: "Niclas Gustafsson" <niclas(dot)gustafsson(at)codesense(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PG_XLOG grows and grows
Date: 2002-05-15 16:17:13
Message-ID: 008d01c1fc2b$f97719d0$b700a8c0@gmg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Tom Lane
Sent: den 15 maj 2002 17:37
To: Niclas Gustafsson
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] PG_XLOG grows and grows

"Niclas Gustafsson" <niclas(dot)gustafsson(at)codesense(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Naomi Walker 2002-05-15 17:10:39 Fwd: Administrative Processing for csitech: getrows
Previous Message Tom Lane 2002-05-15 15:37:17 Re: PG_XLOG grows and grows