Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klWQV-0004Cv-K6 for pgsql-general@arkaria.postgresql.org; Sat, 05 Dec 2020 12:12:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klWQU-0003hW-CJ for pgsql-general@arkaria.postgresql.org; Sat, 05 Dec 2020 12:12:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klWQT-0003hK-CQ for pgsql-general@lists.postgresql.org; Sat, 05 Dec 2020 12:12:34 +0000 Received: from [66.111.4.226] (helo=forward2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klWQP-000601-T6 for pgsql-general@lists.postgresql.org; Sat, 05 Dec 2020 12:12:31 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailforward.nyi.internal (Postfix) with ESMTP id E8C6519429E2; Sat, 5 Dec 2020 07:12:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 05 Dec 2020 07:12:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; 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-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=i0/ZInGKWOE5kn/yYYlZH3SEsW7q4BeRHDV5eDbbJ KA=; b=Y0GMbADp2APrSd48iuw1oSeATY5Hrk2Ry+41negaCIBBCfGbq/o/z+bz4 dWrhUIXkf/nocF+/H79wglZdnfzhrNytImIc3KnBoc6VqfgN5nHyVIL72Kq0E3hv UAbb/dIBsZKsEL4ea76cJjG4Uckcs03y+26axs5JbADcimP1mt177xV6/YL0Up6X LYp5IQwaE23VZPFtF+U/6676oWEM4sMuCGD9HdyISHE6Sykhnow9FfOnbpQADOQu 4bd0ctjRZEADF9GfUxD+9jl/QCCC0KxxamYD7X6DHf9EpTzyPt62coLDPDWyiCXp s15vf8QZ6b4blIBNY8V7AWRg6gqlw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudejtddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehheeijefgvefhvdeh leekueevhfehhedvheetgffhteefgeeggfevjeejfffgvdenucfkphepkeejrddujeejrd ejvddrudegvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtoh hm X-ME-Proxy: Received: from april.pezone.net (p57b1488e.dip0.t-ipconnect.de [87.177.72.142]) by mail.messagingengine.com (Postfix) with ESMTPA id 68B33240064; Sat, 5 Dec 2020 07:12:16 -0500 (EST) Subject: Re: Set COLLATE on a session level To: Tom Lane References: <0DDE56FB-89A8-4621-BF5E-8CE3461F4983@mikatiming.de> <98a8cdc2-ed4b-616c-7370-3d5e5ccb8f91@enterprisedb.com> <2156565.1607098719@sss.pgh.pa.us> Cc: Dirk Mika , "pgsql-general@lists.postgresql.org" From: Peter Eisentraut Organization: EnterpriseDB Message-ID: <67253506-9381-44ac-0bbd-5b4aea29cc19@enterprisedb.com> Date: Sat, 5 Dec 2020 13:12:15 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <2156565.1607098719@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.226 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-12-04 17:18, Tom Lane wrote: >> There is a SET COLLATION command in the SQL standard that does this. >> Someone just has to implement it. It wouldn't be terribly difficult, I >> think. > > [ squint... ] Just because it's in the standard doesn't mean it's a > good idea. It sounds like this is morally equivalent to a GUC that > changes query semantics. We have learned painfully that such behaviors > are best avoided, because they break things you didn't expect to break. I think it would be analogous to the schema search path.