Re: Somewhat odd messages being logged on replicated server

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Karl Denninger <karl(at)denninger(dot)net>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Somewhat odd messages being logged on replicated server
Date: 2010-09-30 06:25:54
Message-ID: 1285827954.3682.5.camel@jdavis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2010-09-29 at 21:57 -0500, Karl Denninger wrote:
> That's actually ok - the update itself is a legitimate statement on the
> master, posted to that table on a reply, and is part of a transaction.

Even if it's part of a transaction, you still have a race condition,
unless you're using a serializable transcation isolation level.

> I thought logshipping like this over TCP would present the actual WAL
> changes (e.g. page changes) and was quite surprised when I saw what look
> very much like actual statements in the logfile. A process status also
> shows no postgres processes.

9.0-style replication only ships WAL. Those UPDATE statements are _not_
coming from the 9.0-style log shipping replication.

> All of the real application connections are on a machine 1200 miles away
> and behind pgpool, so if there WAS a connection it would be persistent.
> It's not there (never mind that the clients don't have an entry in
> pg_hba that would work, nor could they cross the firewall since there is
> no port forwarding in the firewall to allow it.)
>

Aha, you're using pgpool. The statements are probably coming from there
-- it's got a lot of options and it may be misconfigured.

Turn on some extended logging information that includes the client IP
address. That will probably give you some better insight.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2010-09-30 07:00:22 Re: ECPG - Some errno definitions don't match to the manual
Previous Message Tom Lane 2010-09-30 03:04:22 Re: build of 9.0 did not make an "etc" directory