From: Neil Dugan <postgres@butterflystitches.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: How to obtain the list of data table name only
Date: Fri, 15 Jul 2005 22:16:08 +1000
Message-ID: <1121429769.4950.3.camel@localhost.localdomain> (raw)
In-Reply-To: <1121379882.854728.128920@z14g2000cwz.googlegroups.com>
References: <1121379882.854728.128920@z14g2000cwz.googlegroups.com>
On Thu, 2005-07-14 at 15:24 -0700, sunny076@yahoo.com wrote:
> Hi,
>
> I am wondering if anyone can tell me how I can obtain only the list of
> data table in postgresql without function and other ancillary tables. I
> hope that I can add a tag that can filter only data table.
>
> I am using the following SQL Statement:
>
> "SELECT TABLE_NAME, TABLE_TYPE FROM INFORMATION_SCHEMA.TABLES"
>
> I would appreciate if anyone can enligten me on how this can be
> achieve.
>
> Sunny
I am not sure what you mean but one way to find out what tables there
are is to use the 'pg_tables' view.
select tablename from pg_tables;
Regards Neil.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgres@butterflystitches.com.au
Subject: Re: How to obtain the list of data table name only
In-Reply-To: <1121429769.4950.3.camel@localhost.localdomain>
* 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