plpgsql: How to catch error when I drop an inexistent table?

From: Conxita Marín <comarin(at)telefonica(dot)net>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: plpgsql: How to catch error when I drop an inexistent table?
Date: 2002-12-11 08:21:03
Message-ID: 000001c2a0ee$470d26a0$0cd8a8c0@dims
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi.
I'm trying to write a function that works with a temporary table. I have to
be sure that when I execute the function, it create it. Then I make a DROP
TABLE and after a CREATE TABLE. But if the table doesn't exists, the DROP
statement raises an error and the function stops. How can I resolve this
problem?

Thanks.

Conxita

Browse pgsql-novice by date

  From Date Subject
Next Message Harry 2002-12-11 08:43:17 Re: aggregating into 2 dimensions?
Previous Message Vijay Deval 2002-12-11 08:07:48 Re: Selective sequence..