Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aGU9s-0002Ce-Ky for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Jan 2016 16:08:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aGU9s-0006g7-7G for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Jan 2016 16:08:28 +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 1aGU9N-00066I-1y for pgsql-jdbc@postgresql.org; Tue, 05 Jan 2016 16:07:57 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aGU9J-0002gI-Go for pgsql-jdbc@postgresql.org; Tue, 05 Jan 2016 16:07:55 +0000 Received: by mail-wm0-x22c.google.com with SMTP id f206so28588718wmf.0 for ; Tue, 05 Jan 2016 08:07:52 -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:content-transfer-encoding; bh=hmN1fwv+VbeONGnrx6kDVMv+z3c7ZSlp+CURxqXObR8=; b=MftiEEw7SH4D2psYaHCEBZ8VNxHp7svn3FPmSbNJIPdNJu2DPOB5TMF5Uf40dSz5ee nM2gd+6ee9oHQHw5WKPVUyGl9iwamd+QiJaP+4hHK8rYem2XAu0FgKJ6rjBYfg9epGJp zPzWYXnSuUQXgv670u3CW22JXU9mQaUaiQwHmqpgAr7XkwbRCqVBAmlI5ySiWLlBBJQH FSb3OGBOdfhjb+f0uFq2cZuXaTRTruXnxlMnwTvfQOdCez38dJvS+g/e00JTDEa1B15m g3zCCVV4giHul+iif3a0g64fkpVO44JQ/8wZTRpa6HX8pMs7yAiqDM/iSOoSx+ZOO/4O ItdA== 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 :content-transfer-encoding; bh=hmN1fwv+VbeONGnrx6kDVMv+z3c7ZSlp+CURxqXObR8=; b=JrAk/UiccEpnTyNilWwa1VT2dB+73+HLDtgDxiyvR1KMYayvDpO30cToCE7T3I0l/i XdziXxk5HGaiTEWH3+2gTuOkGsUvFBgep9SLZDZd4LJ4bOeztPEMNKdrqmCFnI9fX4va 2H9ZRz2Jlc58fEy6zbZ8tm5c1AR7bgCK/zP9NZ8s216Rit/eisdYBVZdv4M9PBez+d+l TyxAhj/KsXelJPL/W7rI/ZAHZadq1bAaYvnbAt2Pq0JFZJlLU6E4xeHFJ1rhdH3qkMbs 0eE6yaJMXmp/itRt0sru745ZpX/HC1xQYKJAGKw1xulF2r6EvkdJY2tiM9rCdnmAZvHq eFng== X-Gm-Message-State: ALoCoQkCOcZgd7JZB7Dm8WNSQoqd7UcdRgoHMOh5iVu7p+jp91axYkljiDNwkA597kOYL79ok82Fp6C/j68ZDt7EzAxdPzKaEg== X-Received: by 10.194.174.229 with SMTP id bv5mr120386012wjc.29.1452010071562; Tue, 05 Jan 2016 08:07:51 -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 193sm4205030wmg.16.2016.01.05.08.07.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jan 2016 08:07:50 -0800 (PST) Message-ID: <568BEA55.5040208@8Kdata.com> Date: Tue, 05 Jan 2016 17:07:49 +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: Vladimir Sitnikov CC: Dave Cramer , Kevin Wooten , List Subject: Re: Backend protocol wanted features References: <07F56911-8A74-4CBD-915B-24F851970A67@me.com> <56883940.2090100@8Kdata.com> <568BD1FD.6070600@8Kdata.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 05/01/16 15:35, Vladimir Sitnikov wrote: >> 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? > Well, it would still require to wrap one's mind around to get that efficient. > You do not like to deallocate all server-prepared statements after > each DDL, do you? > On the other hand, JDBC driver does not know changes to which > tables/views/functions/types would impact statements prepared in > current session, thus JDBC driver has no idea which changes it should > subscribe to. That's a tough question whether to drop or re-create prepared statements if they point to database objects that have been modified. Needless to say, the naive approach is to drop them all and re-create them when required. Any more clever algorithm than this one would be an improvements. However, I still fail to see how this is related to how to acquire the knowledge of schema changes. Whether you get it via v4 protocol messages or LD, either way, you have the same problem with the prepared statements. And, in any case, if schema changes were to be implemented as part of the protocol, it would surely be push messages sent asynchronously. Not that different from consuming LD. My point is that I envision strong opposition to add duplicate functionality. If schema changes could be obtained from LD, I presume there will be opposition to *also* add it to the protocol just because it may not be a great fit for the JDBC driver. > >> wouldn't it be better to support LD in the driver? > That's another question. +1 for supporting LD in the driver (for both > internal and external uses). Nice, me too :) Á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