pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Hernández Tortosa <aht@8Kdata.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Kevin Wooten <kdubb@me.com>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Backend protocol wanted features
Date: Tue, 05 Jan 2016 15:23:57 +0100
Message-ID: <568BD1FD.6070600@8Kdata.com> (raw)
In-Reply-To: <CADK3HHL6ZfEZfMXZfW3j8_PvEdVJ+9+OeugdzcdAMObiUVriQw@mail.gmail.com>
References: <CAB=Je-GUO8p_yRiGkYcHRyjUHPrepjKooeqiAUwZp7pXK4igpQ@mail.gmail.com>
	<07F56911-8A74-4CBD-915B-24F851970A67@me.com>
	<56883940.2090100@8Kdata.com>
	<CADK3HHL6ZfEZfMXZfW3j8_PvEdVJ+9+OeugdzcdAMObiUVriQw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>


On 04/01/16 18:26, Dave Cramer wrote:
>
>
>
> On 2 January 2016 at 15:55, Álvaro Hernández Tortosa <aht@8kdata.com 
> <mailto:aht@8kdata.com>> wrote:
>
>
>     On 29/12/15 20:22, Kevin Wooten wrote:
>
>         Add “schema change notifications”.
>
>
>         This is an interesting idea.
>
>         I wonder, however, if a protocol message is the place for it.
>     I think it belongs to logical decoding (and yes, I know there is
>     no current support for DDL in logical decoding, but there should
>     be). So I wouldn't add this specifically to the febe protocol.
>
>         On another topic, I'd look into considering some of the ideas
>     of the "protocol" designed by the pglogical_output plugin
>     (http://www.postgresql.org/message-id/CAMsr+YGc6AYKjsCj0Zfz=X4Aczonq1SfQx9C=hUYUN4j2pKwHA@mail.gmail....)
>     for possible inclusion as first-class constructs in a new version
>     of the protocol.
>
>         Álvaro
>
>
> Putting this into logical decoding doesn't really help us as that 
> would require the driver to connect to the logical decoding stream as 
> well.
>
> While I understand it is required for LD. The driver needs it for a 
> different reason.

     I agree. Somehow :)

     I mean: I understand the driver needs this information. 100% agreed 
there. But adding new protocol messages that "duplicate" the 
functionality that should belong (IMHO) only to LD, doesn't make sense. 
Sure, it is a poor fit a LD client for a JDBC driver. But I still think 
it's the way to go. That was the main starting point for us thinking 
about Phoebe, you know :)

     So rather than asking everybody to add new messages to the protocol 
to support this, wouldn't it be better to support LD in the driver?

     Cheers,

     Álvaro


-- 
Álvaro Hernández Tortosa


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



>
>
> Dave Cramer
>
> davec@postgresintl.com <mailto:davec@postgresintl.com>
> www.postgresintl.com <http://www.postgresintl.com/;
>
>
>     -- 
>     Álvaro Hernández Tortosa
>
>
>     -----------
>     8Kdata
>
>
>
>         Currently “-ng” uses a bit of magic, mid query, to detect when
>         schema changes have occurred. This is how the binary types
>         remain correctly mapped.  A notification sent whenever a type
>         (basically anything in pg_type) is altered in any way would
>         solve this problem perfectly. It would be best if the
>         notification included the type oids that changed.
>
>         The infrastructure is already there in both needed respects,
>         notifications & it already knows internally about the changes)
>         so this should be something that could be easily added to the
>         current protocol.
>
>             On Dec 29, 2015, at 12:07 PM, Vladimir Sitnikov
>             <sitnikov.vladimir@gmail.com
>             <mailto:sitnikov.vladimir@gmail.com>> wrote:
>
>             Hi,
>
>             I've collected "wanted features" page (see [1], [2]).
>             A dedicated file in pgjdbc seems fine for me. If you know
>             better
>             location, waive a hand.
>
>             If you remember more, or if you want your name with "+1"
>             to appear
>             there, comment on the PR or file a PR as that one is
>             merged in.
>
>             [1]: https://github.com/pgjdbc/pgjdbc/pull/478
>             [2]:
>             https://github.com/pgjdbc/pgjdbc/blob/protocol_wanted_features/backend_protocol_v4_wanted_features.m...
>
>             PS. As always, it would be nice if you proofread the file
>             as I am
>             having troubles with mastering English.
>
>             Vladimir
>
>
>             -- 
>             Sent via pgsql-jdbc mailing list
>             (pgsql-jdbc@postgresql.org <mailto:pgsql-jdbc@postgresql.org>)
>             To make changes to your subscription:
>             http://www.postgresql.org/mailpref/pgsql-jdbc
>
>
>
>
>     -- 
>     Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org
>     <mailto:pgsql-jdbc@postgresql.org>)
>     To make changes to your subscription:
>     http://www.postgresql.org/mailpref/pgsql-jdbc
>
>

view thread (23+ messages)  latest in thread

Message-ID: <568BD1FD.6070600@8Kdata.com>
Permalink:  ../568BD1FD.6070600@8Kdata.com/
Also on:    postgresql.org/message-id/568BD1FD.6070600@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, pg@fastcrypt.com, kdubb@me.com, sitnikov.vladimir@gmail.com
  Subject: Re: Backend protocol wanted features
  In-Reply-To: <568BD1FD.6070600@8Kdata.com>
  References: <CAB=Je-GUO8p_yRiGkYcHRyjUHPrepjKooeqiAUwZp7pXK4igpQ@mail.gmail.com> <07F56911-8A74-4CBD-915B-24F851970A67@me.com> <56883940.2090100@8Kdata.com> <CADK3HHL6ZfEZfMXZfW3j8_PvEdVJ+9+OeugdzcdAMObiUVriQw@mail.gmail.com> <568BD1FD.6070600@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