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 1o1P6o-0003i0-Fa for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2022 09:14:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o1P6n-0003WM-Bo for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2022 09:14:41 +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 1o1P6n-0003WD-1v for pgsql-hackers@lists.postgresql.org; Wed, 15 Jun 2022 09:14:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1P6k-0001UJ-CU for pgsql-hackers@postgresql.org; Wed, 15 Jun 2022 09:14:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9B4555C030B; Wed, 15 Jun 2022 05:14:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 15 Jun 2022 05:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1655284476; x= 1655370876; bh=eKcw15oQilHYmolnJc21NsX4FDHP+EoeQVFzBa3V9kc=; b=U EypgpLk9GaztjpNuAE1+zsau7mOL3r2M5T8bThP7JrgF9S0lBODIvC7jupH1C+l5 GNlAyjDtaphYcFGH3CvYMrOWZjvPIgK2Pn14E9q/NYZeC48QNGwsS4olBN2kHio7 ttI6pgjhmJ/bv2J+Y8v3I/tIh4Hf3naB/3kqdaDG+AVWRClgwBDPW6QVa56yL+z7 Hzzi0nDznp8v9zz5Lw+y37MrAorzjivBA74f0I1VmQ5Rb/sO1Gt2wQB8FGXwCIHR Y22zCVistH30zu13cncWomELVXbm6VnmUJAWp0rYAfXHAc5fcgfHetG95TP9R4a8 PTQNdyTTKXLjzdV/6hoFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvuddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Jun 2022 05:14:34 -0400 (EDT) Message-ID: <302a562e-f766-bf0f-f76d-e6b232bf8870@enterprisedb.com> Date: Wed, 15 Jun 2022 11:14:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Add header support to text format and matching feature Content-Language: en-US To: Julien Rouhaud , Michael Paquier Cc: Andrew Dunstan , Greg Stark , =?UTF-8?Q?R=c3=a9mi_Lapeyre?= , Zhihong Yu , David Steele , vignesh C , PostgreSQL-development , Daniel Verite References: <07891B9D-2140-4C06-AF96-C14F1E1B0E8E@lenstra.fr> <8eba1968-9503-5be7-b473-37383f17bb72@enterprisedb.com> <206ac69a-4e47-c49a-66ae-e748c339ba35@enterprisedb.com> <20220607154744.vvmitnqhyxrne5ms@jrouhaud> <20220613023213.bj7qjnplvgfmx522@jrouhaud> <20220614091319.jk4he5migtpwyd7r@jrouhaud> From: Peter Eisentraut In-Reply-To: <20220614091319.jk4he5migtpwyd7r@jrouhaud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.06.22 11:13, Julien Rouhaud wrote: >> There is no need for the extra >> comment, and the error code should be ERRCODE_FEATURE_NOT_SUPPORTED. > Is there any rule for what error code should be used? > > Maybe that's just me but I understand "not supported" as "this makes sense, but > this is currently a limitation that might be lifted later". I tend to agree with that interpretation. Also, when you consider the way SQL rules and error codes are set up, errors that are detected during parse analysis should be a subclass of "syntax error or access rule violation".