From: Tom Lane <tgl@sss.pgh.pa.us>
To: ishanjoshi@live.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15901: Tablespace showing as null in psql and pgadmin
Date: Tue, 09 Jul 2019 10:39:55 -0400
Message-ID: <21982.1562683195@sss.pgh.pa.us> (raw)
In-Reply-To: <15901-e5cfe2dd7298a3a4@postgresql.org>
References: <15901-e5cfe2dd7298a3a4@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> As I have created separate tablespace (Not using default tablespace
> pg_default or pg_global) for my new database. I have tried to create tables
> with and without tablespace parameter and both these tables while checking
> in pg_table, tablespace column showing as null. I tried to extract from
> other tables but getting tablespace as null only.
The case you showed isn't a bug: creating a table that's specified to be
in the database's default tablespace is treated the same as not specifying
any tablespace. This is because if you change the database's default
tablespace later, such a table will be moved along with every other table
that's in the database's default tablespace.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, ishanjoshi@live.com
Subject: Re: BUG #15901: Tablespace showing as null in psql and pgadmin
In-Reply-To: <21982.1562683195@sss.pgh.pa.us>
References: <15901-e5cfe2dd7298a3a4@postgresql.org> <21982.1562683195@sss.pgh.pa.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