pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rhemandaddy@googlemail.com
Subject: BUG #15072: Unable to get tablespace from pg_tables for new created table
Date: Sun, 18 Feb 2018 09:52:23 +0000
Message-ID: <151894754375.1388.3312596352253421332@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15072
Logged by:          rheman pessek
Email address:      rhemandaddy@googlemail.com
PostgreSQL version: 10.2
Operating system:   ubuntu server 16.04.3
Description:        

Hi everyone.
I have created tablespace.

sudo mkdir /tbs_data
sudo chown -R postgres:postgres  /tbs_data
su - postgres
create tablespace tbs_data location ‘/tbs_data’;

Then I have create database and tables on that tablespace.

create database gescom_bis tablespace tbs_data;
\c gescom_bis;
SET default_tablespace = 'tbs_data';
create table voiture_bis (num int) tablespace tbs_data;


But when I run this the following query I have ans empty (blank result)

select tablespace from pg_tables where tablename='voiture_bis';

hence the tablespace name is not displayed.

But went I run the following query, everythins seams to work.

select oid from pg_database where datname = 'gescom_bis';
select relfilenode from pg_class where relname = 'voiture_bis';


Best ragrd.




view thread (2+ messages)  latest in thread

Message-ID: <151894754375.1388.3312596352253421332@wrigleys.postgresql.org>
Permalink:  ../151894754375.1388.3312596352253421332@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/151894754375.1388.3312596352253421332@wrigleys.postgresql.org

 · 

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 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, rhemandaddy@googlemail.com
  Subject: Re: BUG #15072: Unable to get tablespace from pg_tables for new created table
  In-Reply-To: <151894754375.1388.3312596352253421332@wrigleys.postgresql.org>
  References: <151894754375.1388.3312596352253421332@wrigleys.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