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 1qyJUo-007Ybs-Qc for pgsql-docs@arkaria.postgresql.org; Wed, 01 Nov 2023 22:15:30 +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 1qyJUm-009Gdg-DD for pgsql-docs@arkaria.postgresql.org; Wed, 01 Nov 2023 22:15:28 +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 1qyJUm-009GdX-5Y for pgsql-docs@lists.postgresql.org; Wed, 01 Nov 2023 22:15:28 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyJUj-004E5K-FL for pgsql-docs@lists.postgresql.org; Wed, 01 Nov 2023 22:15:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=qZ++S5l0zqne0IBKQHCTPgSfmEFihDoSN/TKHK3V3N0=; b=RMnOG PhAZnZWezObfQjPlG9Auwe4O71JAmIA1nxeeuzgtvHJ56Hfz/REuq52uiNKpHKIqVeEFhMcOWBuj5 2UHSjOYcF7/jhaefb8FiRDd038/xfik+qn2E4Az5z9PQWwRk1ueEOA5Zy+im4O1c8ocyUWZYz7vdP KJfD1hJ53+JBk0IMRmOCoQzrbgfmasPrgDDuLD25fmTt33ooq6rY30dSVYtTRFdetjRfTCDHBpn5x lRBrJHawBHbXdCCF1O5256rOdm8f/2VIJ0TIEj6MyCrk5htfFEl+EtEVV4Vs0DBQOyhg9K3F4wfOX Cj5kKhMXkTBZWwWPxIDaXv+msKI3A==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qyJUi-009tdo-0a; Wed, 01 Nov 2023 18:15:24 -0400 Date: Wed, 1 Nov 2023 18:15:24 -0400 From: Bruce Momjian To: zhoushulin1992@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: 'pg_global' cannot be used as default_tablespace. Message-ID: References: <160499688847.25495.8682880307938679648@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160499688847.25495.8682880307938679648@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Nov 10, 2020 at 08:28:08AM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/13/bug-reporting.html > Description: > > Tablespace 'pg_global' is one of the two auto-generated tablespace by > initdb, and 'pg_global' should not be used as the default_tablespace, since > it is used for shared system catalogs. However, none of these information is > recorded in the doc > https://www.postgresql.org/docs/11/runtime-config-client.html and > https://www.postgresql.org/docs/11/manage-ag-tablespaces.html. In case of > some mishandling to use 'pg_global' as a default_tablespace value, it is > better to record it in the doc of > https://www.postgresql.org/docs/11/manage-ag-tablespaces.html. I know this is three years old, but I am now looking at this email can can't see the problem: SET default_tablespace = 'pg_global'; CREATE TABLE test (x int); ERROR: only shared relations can be placed in pg_global tablespace Did you want an error from the SET command? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.