Built-in functions - does an obect exist...

From: "Loftis, Charles E" <charles(dot)loftis(at)eds(dot)com>
To: postgres <pgsql-novice(at)postgresql(dot)org>
Subject: Built-in functions - does an obect exist...
Date: 2004-06-08 19:08:11
Message-ID: 25DC89BACF65D549BA045B806348C65E01AAF689@ushem201.exse01.exch.eds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

In many other db systems you can use built in functions to check to see if
an object exists in the db...

For example, in Sybase, you can use the object_id function to check to see
if an object exists...
if object_id('some table, view, stored procedure, etc. name') is not null
-- perform some action, like drop a stored proc
else
-- perform some other action
End -- if

Does an equivalent function exist in Postgres?
Furthermore, where should I look to find the list of such built-in
functions?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2004-06-08 19:42:45 Re: Built-in functions - does an obect exist...
Previous Message Loftis, Charles E 2004-06-08 13:06:56 Re: selecting tables and columns