Re: Any way to SELECT a list of table names?

From: Ken Godee <ken(at)perfect-image(dot)com>
To: Eric Freeman <ejf7(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Any way to SELECT a list of table names?
Date: 2004-01-12 17:26:20
Message-ID: 4002D8BC.5080806@perfect-image.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sat, 10 Jan 2004, Eric Freeman wrote:
>
>
>>Is there any way in Postgres to SELECT a list of table names from inside of
>>a C program using ECPG?
>>Something similar to SELECT current_user that will give you all of the
>>tables in the database you are connected to.
>
>
Not sure if this is what you're trying to do but.......

"SELECT tablename FROM pg_tables where tablename not like 'pg_%'"

Will get a list of tables in the db you're connected to.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2004-01-12 17:47:56 Re: what we need to use postgresql in the enterprise
Previous Message Eric Freeman 2004-01-12 17:07:45 unsubscribe