drop if exists - Mailing list pgsql-novice

From Celia McInnis
Subject drop if exists
Date
Msg-id 20050503205238.M86371@drmath.ca
Whole thread Raw
In response to Re: retrieving a previously defined stored procedure from the database?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
What's the easiest way to drop a composite type definition or a table if you
aren't guaranteed that it exists?

I need to do this quite frequently from stored procedures and get booted out
of the stored procedure if I try to DROP something which doesn't currently
exist.

Thanks,
Celia McInnis

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: retrieving a previously defined stored procedure from the database?
Next
From: "Keith Worthington"
Date:
Subject: comparison trigger function