Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHxJh-0002MW-7L for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2013 14:15:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UHxJg-0006xQ-9X for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2013 14:15:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHrm9-0008KZ-HP for pgsql-bugs@postgresql.org; Tue, 19 Mar 2013 08:20:05 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHrm4-0008BL-H0 for pgsql-bugs@postgresql.org; Tue, 19 Mar 2013 08:20:05 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHrm3-0005Mp-18 for pgsql-bugs@postgresql.org; Tue, 19 Mar 2013 08:19:59 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UHrm2-0005mw-Bs for pgsql-bugs@postgresql.org; Tue, 19 Mar 2013 08:19:58 +0000 Date: Tue, 19 Mar 2013 08:19:58 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7970: How 's list all members in a special tablespace ( not as pg_global & pg_default ) To: pgsql-bugs@postgresql.org From: sunny99991982@yahoo.com.vn X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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=3D(select oid from pg_tablespace where spcname=3D'TBS1'); relname=20 --------- (0 rows) why's return 0 rows ? i don't know please help me. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs