pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Valentine Gogichashvili <valgog@gmail.com>
Cc: pchan@contigo.com
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8404: JDBC block hot standby replication?
Date: Wed, 28 Aug 2013 15:32:18 +0300
Message-ID: <521DEDD2.7010405@vmware.com> (raw)
In-Reply-To: <CAP93muV_ayDzej5TUC=ZWoFq46T7R8xoTn58qHS_Y40U61M8Lg@mail.gmail.com>
References: <E1VETem-0003i8-Rs@wrigleys.postgresql.org>
	<CAP93muV_ayDzej5TUC=ZWoFq46T7R8xoTn58qHS_Y40U61M8Lg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 28.08.2013 12:46, Valentine Gogichashvili wrote:
> Hello
>
> This is a well documented feature of Hot-Standby Replication.
>
> see:
> http://www.postgresql.org/docs/9.2/static/runtime-config-replication.html#RUNTIME-CONFIG-REPLICATION...

That explains how streaming delay and query cancellations work, but the 
OP's question was why running the same statements over JDBC behaves 
differently than running them over psql.

I'm afraid I don't know the answer. One guess is that when you make the 
JDBC connection, you have asked for repeatable read or serializable 
isolation level, while psql runs in read committed mode. Running a "show 
transaction_isolation" in both would show if that's the case. I'd also 
suggest doing "select * from pg_stat_activity" to see if the session 
looks the same in both cases.

- Heikki


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)  latest in thread

Message-ID: <521DEDD2.7010405@vmware.com>
Permalink:  ../521DEDD2.7010405@vmware.com/
Also on:    postgresql.org/message-id/521DEDD2.7010405@vmware.com

 · 

reply

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-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, valgog@gmail.com, pchan@contigo.com
  Subject: Re: BUG #8404: JDBC block hot standby replication?
  In-Reply-To: <521DEDD2.7010405@vmware.com>
  References: <E1VETem-0003i8-Rs@wrigleys.postgresql.org> <CAP93muV_ayDzej5TUC=ZWoFq46T7R8xoTn58qHS_Y40U61M8Lg@mail.gmail.com> <521DEDD2.7010405@vmware.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