Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGXSY-003bd5-6O for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2024 05:53:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tGXSW-002qAH-MR for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2024 05:53:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGXSW-002qA9-D5 for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2024 05:53:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGXST-004RkL-QI for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2024 05:52:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4AS5qsbd2007225; Thu, 28 Nov 2024 00:52:54 -0500 From: Tom Lane To: Kirill Reshke cc: jian he , PostgreSQL Hackers Subject: Re: CREATE SCHEMA ... CREATE DOMAIN support In-reply-to: References: <1898722.1732732780@sss.pgh.pa.us> Comments: In-reply-to Kirill Reshke message dated "Thu, 28 Nov 2024 10:27:00 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2007223.1732773174.1@sss.pgh.pa.us> Date: Thu, 28 Nov 2024 00:52:54 -0500 Message-ID: <2007224.1732773174@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kirill Reshke writes: > On Wed, 27 Nov 2024 at 23:39, Tom Lane wrote: >> We've fixed a few utility statements so that they can receive >> a passed-down ParseState, but not DefineDomain. > PFA as an independent patch then. Or should we combine these two into one? No, I don't think this should be part of the patch discussed in this thread. It feels rather random to me to be fixing only DefineDomain; I'm sure there's more in the same vein. I'd like to see a patch with a scope along the lines of "fix everything reachable within CREATE SCHEMA" or perhaps "fix all calls of typenameType". (A quick grep shows that an outright majority of the callers of that are passing null ParseState. I didn't look to see if any of them have a good excuse beyond "we didn't do the plumbing work".) regards, tom lane