From: sunny99991982@yahoo.com.vn
To: pgsql-bugs@postgresql.org
Subject: BUG #7970: How 's list all members in a special tablespace ( not as pg_global & pg_default )
Date: Tue, 19 Mar 2013 08:19:58 +0000
Message-ID: <E1UHrm2-0005mw-Bs@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 7970
Logged by: How 's list all members in a special tablespace
Email address: sunny99991982@yahoo.com.vn
PostgreSQL version: 9.0.4
Operating system: Enterpride linux 5 x86_64
Description:
I tried this, which will get the list of tables belong to 'XYZ' tablespace.
CREATE TABLESPACE TBS1 OWNER access LOCATION '/u03/tbs';
--> OK
Create table public.SinhVien ( MaSV text, TenSV text, Sodt int ) tablespace
TBS1;
--> OK
Insert into public.SinhVien (MaSV,TenSV,Sodt) Values ('001','Nguyen
Van',123456789),('002','Nguyen Ha',987654321);
--> OK
select relname from pg_class where reltablespace=(select oid from
pg_tablespace where spcname='TBS1');
relname
---------
(0 rows)
why's return 0 rows ? i don't know
please help me.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: sunny99991982@yahoo.com.vn
Subject: Re: BUG #7970: How 's list all members in a special tablespace ( not as pg_global & pg_default )
In-Reply-To: <E1UHrm2-0005mw-Bs@wrigleys.postgresql.org>
References: <E1UHrm2-0005mw-Bs@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