pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: zhoushulin1992@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: 'pg_global' cannot be used as default_tablespace.
Date: Wed, 1 Nov 2023 18:15:24 -0400
Message-ID: <ZULN_DUmssiXednO@momjian.us> (raw)
In-Reply-To: <160499688847.25495.8682880307938679648@wrigleys.postgresql.org>
References: <160499688847.25495.8682880307938679648@wrigleys.postgresql.org>

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  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





view thread (11+ messages)  latest in thread

Message-ID: <ZULN_DUmssiXednO@momjian.us>
Permalink:  ../ZULN_DUmssiXednO@momjian.us/
Also on:    postgresql.org/message-id/ZULN_DUmssiXednO@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, zhoushulin1992@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: 'pg_global' cannot be used as default_tablespace.
  In-Reply-To: <ZULN_DUmssiXednO@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox