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 1tHctN-008qGZ-Kb for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Dec 2024 05:53:13 +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 1tHctK-005MER-DC for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Dec 2024 05:53:11 +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 1tHctK-005MDx-3J for pgsql-hackers@lists.postgresql.org; Sun, 01 Dec 2024 05:53:11 +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 1tHctI-000R3B-8x for pgsql-hackers@lists.postgresql.org; Sun, 01 Dec 2024 05:53:10 +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 4B15r4991273965; Sun, 1 Dec 2024 00:53:04 -0500 From: Tom Lane To: Kirill Reshke cc: Peter Eisentraut , jian he , PostgreSQL Hackers Subject: Re: CREATE SCHEMA ... CREATE DOMAIN support In-reply-to: References: <1898722.1732732780@sss.pgh.pa.us> <2007224.1732773174@sss.pgh.pa.us> <1075425.1732993688@sss.pgh.pa.us> <1220935.1733009604@sss.pgh.pa.us> Comments: In-reply-to Kirill Reshke message dated "Sun, 01 Dec 2024 10:39:20 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1273963.1733032384.1@sss.pgh.pa.us> Date: Sun, 01 Dec 2024 00:53:04 -0500 Message-ID: <1273964.1733032384@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kirill Reshke writes: > 3) Why do we delete this in `create_schema.sgml`? Is this untrue? It > is about order of definition, not creation, isn't it? >> - The SQL standard specifies that the subcommands in CREATE >> - SCHEMA can appear in any order. In context with the following sentence, what that is really trying to say is that the spec requires us to re-order the subcommands to eliminate forward references. After studying the text I cannot find any such statement. Maybe I missed something --- there's a lot of text --- but it's sure not to be detected in any obvious place like 11.1 . (I'd be curious to know how other major implementations handle this. Are we the only implementation that ever read the spec that way?) regards, tom lane