Обсуждение: plpgsql: How to catch error when I drop an inexistent table?

Поиск
Список
Период
Сортировка

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

От
Conxita Marín
Дата:
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