Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aGcKg-0002dz-EI for pgsql-jdbc@arkaria.postgresql.org; Wed, 06 Jan 2016 00:52:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aGcKf-0002cJ-Si for pgsql-jdbc@arkaria.postgresql.org; Wed, 06 Jan 2016 00:52:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aGcKA-0001Uc-EL for pgsql-jdbc@postgresql.org; Wed, 06 Jan 2016 00:51:38 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aGcK6-0008QA-QG for pgsql-jdbc@postgresql.org; Wed, 06 Jan 2016 00:51:37 +0000 Received: by mail-wm0-x229.google.com with SMTP id b14so54125256wmb.1 for ; Tue, 05 Jan 2016 16:51:34 -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:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=hhbLiW5kcDqe4e5DBvZCeNCVUd5KklVfg8f2nsJimIY=; b=uFHRpyI9vrTeOmzl/GfMTmishTlZPPGZn8jspFWvlc4/SgoLv0P9bIGuCEq/zJLzTc 9S631xwwHtAz6JlyTij4Gw++D9xjwTsfD3qCoCDz68NUJEDg5FRnGj++CYvBMgY69NgJ Fm12WV2p1FkISHKf00mqasgntcrkMputcOoASfXAXwwPWgAqdJVfttddH0kMCE+LIT0M KguGhMqh4ZO9aFkoyHoP7dDywNETPlWsMw69kj4u7H4WhRS2vLoWbRztgMPxf9/BWnwx 0PYeCUdroj40TbdhrKmdN0f9/xpCLz98e7aKt5/p7gKPyMrg2y5qRjRNZd2PXThuZu8t x5Xg== 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 :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hhbLiW5kcDqe4e5DBvZCeNCVUd5KklVfg8f2nsJimIY=; b=B5+ZE2agA9PWmN4D7Ll4BM7kZzKs/vodfpDKEFvojMV3ucu+brCHOYF2I1ptaTW8EZ Vg77r+TZh02XsrYiw+3MKwpx5T1nkD5lM4QGmxVpc6l7HxEb2HeV5G+G12xsphfBYZAC KP+vh0nFhf9xORDUGtgVmmdjCMtXpXHJQeWjxQ3SeEP01L00v2+7GKa801bTvMkbT9b8 36rcN9O3RYpHpQHA9o1C9FlDSsEVn7uX2g9gWRDi91mBM2gsQy7zID6yYnokzHpRlWx2 SPxCBaQ9Zw0zsLHWuJRtQ7GOeYunWvAZJoggx9hJeQ4IORwaE6p0WtS/sLcbJzzhMSrw vLcA== X-Gm-Message-State: ALoCoQn7gtLkGYhd6qBLoITXQWwnVxgFhJ6SOukcCp0kZfId6BZBR1Rhg/OcQ5UCzatGeqq6VFJqDJ06/o4wPvoSrDEIjCInCQ== X-Received: by 10.194.185.231 with SMTP id ff7mr94354136wjc.23.1452041492948; Tue, 05 Jan 2016 16:51:32 -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 w17sm6027578wmw.15.2016.01.05.16.51.29 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jan 2016 16:51:32 -0800 (PST) Message-ID: <568C650C.6000402@8Kdata.com> Date: Wed, 06 Jan 2016 01:51:24 +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: pgsql-jdbc@postgresql.org Subject: Re: References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.1 (-) 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 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