From: | Alex Turner <aturner(at)maaco(dot)com> |
---|---|
To: | Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il> |
Cc: | Postgres mailing list <pgsql-interfaces(at)postgreSQL(dot)org> |
Subject: | Re: [INTERFACES] Retreiving Table info |
Date: | 1999-05-25 13:16:08 |
Message-ID: | 374AA298.D478E5F9@maaco.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Brilliant! worked first time. pg_class is the one!
I know that you can get the types from a database from the metadata, but I'm
wondering if there is also a way to issue to an SQL query to postgres that will
yield the same result.
Alex T
Herouth Maoz wrote:
> At 14:52 +0300 on 25/05/1999, Alex Turner wrote:
>
> >
> > however.. is it possible to open a connection to the database and
> > determine what tables are in the database already?
>
> Of course. It's a query, just like any other query, but you select the data
> from the system catalogs rather than your own tables. Take a look in the
> documentation - the manpage for "catalogs".
>
> The table you should query is probably pg_class.
>
> Herouth
>
> --
> Herouth Maoz, Internet developer.
> Open University of Israel - Telem project
> http://telem.openu.ac.il/~herutma
From | Date | Subject | |
---|---|---|---|
Next Message | Byron Nikolaidis | 1999-05-25 14:02:34 | Re: [INTERFACES] MSAccess problem deleting rows |
Previous Message | Herouth Maoz | 1999-05-25 13:08:31 | Re: [INTERFACES] Retreiving Table info |