Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEevG-0003Ia-Jn for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Aug 2013 12:32:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VEevF-0001pC-U1 for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Aug 2013 12:32:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEevF-0001oz-99 for pgsql-bugs@postgresql.org; Wed, 28 Aug 2013 12:32:29 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEevB-0002uF-A8 for pgsql-bugs@postgresql.org; Wed, 28 Aug 2013 12:32:28 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id AE91A29AE2; Wed, 28 Aug 2013 05:32:21 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id AB42A40408; Wed, 28 Aug 2013 05:32:21 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 2E551120030; Wed, 28 Aug 2013 05:39:07 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Wed, 28 Aug 2013 05:39:06 -0700 (PDT) Message-ID: <521DEDD2.7010405@vmware.com> Date: Wed, 28 Aug 2013 15:32:18 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Valentine Gogichashvili CC: pchan@contigo.com, PostgreSQL Bugs Subject: Re: BUG #8404: JDBC block hot standby replication? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -9.4 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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-STANDBY 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