pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Hernández Tortosa <aht@8Kdata.com>
To: pgsql-jdbc@postgresql.org
Subject: Re:
Date: Wed, 06 Jan 2016 01:51:24 +0100
Message-ID: <568C650C.6000402@8Kdata.com> (raw)
In-Reply-To: <CAB=Je-E6=zKw2XYjtnhiuhmqFob--23Cxu6JMbhX2qnHLq4e=Q@mail.gmail.com>
References: <CAB=Je-E6=zKw2XYjtnhiuhmqFob--23Cxu6JMbhX2qnHLq4e=Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>


On 05/01/16 17:15, Vladimir Sitnikov wrote:
>> it would surely be push messages sent asynchronously
> Well, full async here could be bad since it would be bad throw
> exceptions like "you are executing queries faster than JDBC driver
> fetches LD queue" at user.

     I don't see a problem there neither. First, LD changes will be 
consumed as fast as possible, and then the rest of the driver may act 
upon schema changes when possible. If consuming that LD falls behind 
while user is executing queries like mad, it may happen that a (now 
wrong) prepared statement may be called. And it will error. But that's 
ok, after all, that's what you will get anyway if executing queries 
against a table modified concurrently.
> Otherwise JDBC driver would have hard time figuring out if "all the
> DDL notifications have been generated and consumed".
     So as per the above, I won't synchronously wait on that. I will 
only update JDBC's meta information when it arrives.

>
> Nevertheless, whatever interface is chosen to signal DDL changes, it
> makes sense to consider "granular notifications" (including per
> "prepared-statement" ones) from the start even if the very first
> implementation would sent just "discard all".

     If I understand it correctly, by granular you mean that the 
notifications should include enough information to determine which 
tables and columns have changed. If this is the case, sure, I think it's 
completely necessary, even if, as we have said, we use a discard all 
prepared statements in a first implementation.

     Álvaro

-- 
Álvaro Hernández Tortosa


-----------
8Kdata



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



view thread (2+ messages)

Message-ID: <568C650C.6000402@8Kdata.com>
Permalink:  ../568C650C.6000402@8Kdata.com/
Also on:    postgresql.org/message-id/568C650C.6000402@8Kdata.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-jdbc@postgresql.org
  Cc: aht@8Kdata.com
  Subject: Re: 
  In-Reply-To: <568C650C.6000402@8Kdata.com>
  References: <CAB=Je-E6=zKw2XYjtnhiuhmqFob--23Cxu6JMbhX2qnHLq4e=Q@mail.gmail.com> <568C650C.6000402@8Kdata.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