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 1m65KW-00055J-Et for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jul 2021 06:03:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m65KV-0005lt-9d for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jul 2021 06:03:39 +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 1m65KU-0005lk-Cm for pgsql-hackers@lists.postgresql.org; Wed, 21 Jul 2021 06:03:39 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m65KQ-0003tf-JB for pgsql-hackers@postgresql.org; Wed, 21 Jul 2021 06:03:37 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 611445C01DA; Wed, 21 Jul 2021 02:03:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 21 Jul 2021 02:03:33 -0400 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=fm3; bh=23aE5vTxmW05jXTutB75y3YUUJMu7Fs/Q+qso2qAM ZU=; b=ZEpsRuON4gPw1SxdAjGAbrVH0ZbWq3P9kz/pUHXgPJLOe03mtCtkSUK5R NChHIG9BqhttFmdLZJ2aGPvy6Z8DFa5mtSfGhs30wU6YtO/El33BYW3aqOzXFVT5 LlaAnGCznjAcO8DZ5hS967I63vzqQjH5Y1IT9V/OSmZ3cl6RbOFJkAS5rb7mnzUK u4QUsiFKL/IB6AgfoXbDf6ho+28tn56Auja4e8puBxY26rgVzEvrX7aeMt/hWgg9 R96dM1Y4wbF+n/VzVCj2xDzPnO1vqCqUhjzkjGyauCt/wfZgX1CfG9LElGjZATNS YW9sGA4Yn0ND5Rzq+4sZwEDqQPKSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeefgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpefhfeelfeeuveduvdffheej tdejjefglefhtddvffehledutedugeeffedtffffjeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Jul 2021 02:03:32 -0400 (EDT) Subject: Re: wrong relkind error messages To: Michael Paquier Cc: pgsql-hackers References: <202107021610.fv2n3ehw4yu7@alvherre.pgsql> <08b1063f-5341-c30e-6789-b523dd0e9e29@enterprisedb.com> From: Peter Eisentraut Message-ID: <8ff66f7e-d31b-3691-da73-afe20e238f80@enterprisedb.com> Date: Wed, 21 Jul 2021 08:03:29 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 21.07.21 04:21, Michael Paquier wrote: > On Tue, Jul 20, 2021 at 05:08:53PM +0200, Peter Eisentraut wrote: >> While reviewing the logical decoding of sequences patch, I found a few more >> places that could be updated in the new style introduced by this thread. >> See attached patch. > > Those changes look fine. I am spotting one instance in > init_sequence() that looks worth aligning with the others? I think if you write "ALTER SEQUENCE foo", then "foo is not a sequence" would be an appropriate error message, so this doesn't need changing. > Did you consider changing RangeVarCallbackForAlterRelation() or > ExecGrant_Relation() when it came to this thread? Just noticing that, > while going through the code. These might be worth another look, but I'd need to investigate more in what situations they happen.