Re: How to drop a temporary view?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to drop a temporary view?
Дата
Msg-id 10333.1334942688@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to drop a temporary view?  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Ответы Re: How to drop a temporary view?
Список pgsql-general
Vincenzo Romano <vincenzo.romano@notorand.it> writes:
>> As you can see, the third time I get a NOTICE message I don't get the
>> first two times.
>> Everything works fine but this strange thing...

> There's a typo (extra create temporary view), Sorry,

Hm, yeah, the first time would throw an error because pg_temp doesn't
resolve, so if you're using DROP IF EXISTS there would be a visible
difference in behavior between the two cases.

I wonder if DROP IF EXISTS should consider non-existence of the
specified schema (if any) as being a "not exists" case, and not throw
an error for it.  This isn't specific to the temp schema at all IMO.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Vincenzo Romano
Дата:
Сообщение: Re: How to drop a temporary view?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Unaccent characters