Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buK5f-00066A-R6 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 14:01:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buK5f-0005S1-CH for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 14:01:03 +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_2) (envelope-from ) id 1buK4G-0003qc-G5 for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 13:59:36 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buK4D-0000US-If for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 13:59:35 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 623EE206E4; Wed, 12 Oct 2016 09:59:32 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 12 Oct 2016 09:59:32 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ceRRR401/dB7vCj YXlZAlXnTq9Y=; b=KQSy2EH3KM6tbPzf9eF84g+dFrcLD7Lo+c5svZCmYZvmUbP +x6vNWv3QUSDHFeCgIuXc+RHvIHja7B7gl+f1ALRhCf3Ue6q0Nz4sorKEBv2jHLK SxwMoEd7xH0XbbRX36dW5vVCQ4DJtW10wCmppr3kZtGOWpw1r71LHzZZ7bXA= X-Sasl-enc: K/imFrptFAUm0SRlQlOCZjJDyuQN8uB43WB36PG/vc81 1476280772 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id CFEE0CC080; Wed, 12 Oct 2016 09:59:31 -0400 (EDT) Subject: Re: ICU integration To: Thomas Munro References: <85364fde-091f-bbc0-fec2-e3ede39840a6@2ndquadrant.com> <071e7c00-beba-480d-fa62-0fbcf3fa7360@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 12 Oct 2016 09:59:31 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 9/30/16 4:32 PM, Thomas Munro wrote: >> Hmm, yeah, that will need more work. To be completely correct, I think, >> > we'd also need to record the version in each expression node, so that >> > check constraints of the form CHECK (x > 'abc') can be handled. > Hmm. That is quite a rabbit hole. In theory you need to recheck such > a constraint, but it's not at all clear when you should recheck and > what you should do about it if it fails. Similar for the future > PARTITION feature. I think it's not worth dealing with this in that much detail at the moment. It's not like the collation will just randomly change under you (unlike with glibc). It would have to involve pg_upgrade, physical replication, or a rebuilt installation. So I think I will change the message to something to the effect of "however you got here, you can't do that". We can develop some recipes and ideas on the side for how to recover situations like that and then maybe integrate tooling for that later. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers