From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ishanjoshi@live.com
Subject: BUG #15901: Tablespace showing as null in psql and pgadmin
Date: Tue, 09 Jul 2019 09:14:49 +0000
Message-ID: <15901-e5cfe2dd7298a3a4@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15901
Logged by: Ishan Joshi
Email address: ishanjoshi@live.com
PostgreSQL version: 11.2
Operating system: Red Hat Enterprise Linux Server release 7.3
Description:
Hi Team,
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.
Example:
-- Create tablespace
CREATE TABLESPACE testts OWNER postgres LOCATION
'/users/pgtablespaces/testts';
--Create database
CREATE DATABASE testdb
WITH
OWNER = postgres
ENCODING = 'UTF8'
LC_COLLATE = 'C'
LC_CTYPE = 'en_US.UTF8'
TABLESPACE = testts
CONNECTION LIMIT = -1
TEMPLATE = template0;
Create table test1c (Id integer, name varchar(10)) tablespace testts;
Create table test2c (Id integer, name varchar(10)) ;
Output:
select schemaname,tablename,tablespace from pg_tables where tablename
in('test1c','test2c');
testschema | test1c |
public | test2c |
public | test1c |
It seems to be bug here as I tried to check the same in pgAdmin tool which
is also having the same result.
Thanks
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: noreply@postgresql.org, ishanjoshi@live.com
Subject: Re: BUG #15901: Tablespace showing as null in psql and pgadmin
In-Reply-To: <15901-e5cfe2dd7298a3a4@postgresql.org>
References: <15901-e5cfe2dd7298a3a4@postgresql.org>
* 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