| От | Bruno Wolff III |
|---|---|
| Тема | Re: Error dropping non-existent tables |
| Дата | |
| Msg-id | 20041120165113.GA23127@wolff.to обсуждение исходный текст |
| Ответ на | Error dropping non-existent tables (Baldeep Hira <baldeephira@gmail.com>) |
| Ответы |
Re: Error dropping non-existent tables
|
| Список | pgsql-general |
On Fri, Nov 19, 2004 at 21:38:33 -0800, Baldeep Hira <baldeephira@gmail.com> wrote: > > I am able to drop tables in PostgreSQL, but the problem arises when > the table does not exist and I try to execute a "drop table" command. The simplest fix is to do the drop table outside of a transaction (so that the error in the drop doesn't break the rest of your script). If that won't work for you then you can write a custom function that looks in the system catalog to see if the table exists before trying the drop.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера