Re: How to check if a table exists - Mailing list pgsql-general

From Ben Leslie
Subject Re: How to check if a table exists
Date
Msg-id 20010308161709.A2682@sesgroup.net
Whole thread Raw
In response to How to check if a table exists  ("Jeff" <jklcom@mindspring.com>)
List pgsql-general
On Wed, 07 Mar 2001, Jeff wrote:

> Also how to programmatically check if a table exists in the database?

I think the easiest way is to attach to one of the default database like
"Template0" i think, then query the system tables. pg_database and
pg_class are theones you will be after i think.

(Well that how I've done it.. there is probably a better way ;)

Cheers,

Benno

pgsql-general by date:

Previous
From: "Jeff"
Date:
Subject: How to check if a table exists
Next
From: "Stefan Waidele jun."
Date:
Subject: Re: Paradox, dbf and PostgreSQL ?