Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B49F6B5D90E for ; Mon, 20 Jun 2011 16:18:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 19290-01 for ; Mon, 20 Jun 2011 19:18:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 707ACB5DBDC for ; Mon, 20 Jun 2011 16:18:50 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QYjzl-0002Hm-Ow for pgsql-general@postgresql.org; Mon, 20 Jun 2011 12:18:49 -0700 Date: Mon, 20 Jun 2011 12:18:49 -0700 (PDT) From: hyelluas To: pgsql-general@postgresql.org Message-ID: <1308597529766-4507624.post@n5.nabble.com> In-Reply-To: References: <1308351052419-4500200.post@n5.nabble.com> <4DFC3148.6040906@2ndQuadrant.com> <1308593433717-4507266.post@n5.nabble.com> Subject: Re: how to find a tablespace for the table? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-5 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201106/588 X-Sequence-Number: 177021 well, here is the query : profiler1=# select relname,reltablespace from pg_class where reltablespace in(select oid from pg_tablespace where spcname not in ('pg_default','pg_global')); relname | reltablespace ---------+--------------- why it shows no records? profiler1=# select * from pg_catalog.pg_tables where tablename='application_category'; schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastrigge rs ------------+----------------------+------------+------------+------------+----------+---------- --- public | application_category | postgres | | t | f | f (1 row) and that query show empty for the tablespace... thank you Helen -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-find-a-tablespace-for-the-table-tp4500200p4507624.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.