Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aGSWs-0005lW-GV for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Jan 2016 14:24:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aGSWr-0001NQ-Ca for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Jan 2016 14:24:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aGSWq-0001NE-G8 for pgsql-jdbc@postgresql.org; Tue, 05 Jan 2016 14:24:04 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aGSWm-0000St-Kt for pgsql-jdbc@postgresql.org; Tue, 05 Jan 2016 14:24:03 +0000 Received: by mail-wm0-x22f.google.com with SMTP id b14so31439926wmb.1 for ; Tue, 05 Jan 2016 06:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=93cNrP/SMmD+IrzFycd5GcoprReaAcY2oxdu7mSrQbw=; b=QEqzIZkWYCZsxel/k9afoMgx+ndQz2rpqb+kl4zrTzxGztOVIXuotCu7nzb4IhFjb4 ctkEcNV67DslBn/krdhs+N0J545jDjU2bODX6aEVaCNCzgjWhqmhVdVIYUxRUz4THogW 0NgQp+a3Wun7OnM/6kZU1TRd0sCjktL9xFI0rX03ZHKe6d0ja+LJw5rUTX8khgsx4CAA M9X7rPkba6fy1sXNZfdgEP/YfsdMPUBrjIObEJkhfll2gWcZ8auczDzGmRxvg3GAE6yU HKKrIFZkFoxNuhToTjeF/+4txGZiapALk2pRWPYU0fxJ6W47NeUTzr+wreKVNkLZNsFr kTbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=93cNrP/SMmD+IrzFycd5GcoprReaAcY2oxdu7mSrQbw=; b=DF846RDnEys4es61FvRme1X4HSJkW+W1vFr7e4Ps3LwtYJGPweEizqfDkw0bpo1dQy mSWmhz9twBP6tSEJ6ydQx7tZ4O/qAo7cxRStTT2jDEVdknzz+InQxY9O4sQKvWN+7+dk +jiY1IT6ypX724hW4+4Uby3w7+sQ+FSaxGjTTKwXBA7t/+HNQoxAQZus7HaH3iN7C3MA glh0HLFkLOvwqwz79rbMzOZ56jzBZDwiTS/sB3vaSM1WrfxxRJMNmNw6l0HGaBzIwGAH A9oP0hlYlvga3GtMRFBQHqxxHGT7dPY/WOYGTqJ6xGK1ZU+a3nf4nGWb9cyIQcubwfyG Q4yw== X-Gm-Message-State: ALoCoQlUU7B6vhpggzYw9/J+FScZtjErT1/wn7uCfk4EgBhfzDqC+Z7okNiP5p3lgaJp/67xpEaFzvQaXg7u3t32Lvvmf9kGDw== X-Received: by 10.194.222.135 with SMTP id qm7mr102331400wjc.106.1452003839160; Tue, 05 Jan 2016 06:23:59 -0800 (PST) Received: from [192.168.1.129] (239.12.78.188.dynamic.jazztel.es. [188.78.12.239]) by smtp.googlemail.com with ESMTPSA id s8sm39776910wje.35.2016.01.05.06.23.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jan 2016 06:23:58 -0800 (PST) Message-ID: <568BD1FD.6070600@8Kdata.com> Date: Tue, 05 Jan 2016 15:23:57 +0100 From: =?UTF-8?B?w4FsdmFybyBIZXJuw6FuZGV6IFRvcnRvc2E=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Dave Cramer CC: Kevin Wooten , Vladimir Sitnikov , List Subject: Re: Backend protocol wanted features References: <07F56911-8A74-4CBD-915B-24F851970A67@me.com> <56883940.2090100@8Kdata.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------000503070803040500030005" X-Pg-Spam-Score: -1.8 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. --------------000503070803040500030005 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 04/01/16 18:26, Dave Cramer wrote: > > > > On 2 January 2016 at 15:55, Álvaro Hernández Tortosa > 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.com) > 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 > 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 > > 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.md > > 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 ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > --------------000503070803040500030005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 04/01/16 18:26, Dave Cramer wrote:



On 2 January 2016 at 15:55, Álvaro Hernández Tortosa <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.com) 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





--
Á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> 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.md

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)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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


--------------000503070803040500030005--