Re: non intuitive behaviour of DROP TABLE IF EXISTS

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: non intuitive behaviour of DROP TABLE IF EXISTS
Дата
Msg-id 201003070149.o271nUH10245@momjian.us
обсуждение исходный текст
Ответ на non intuitive behaviour of DROP TABLE IF EXISTS  (Manlio Perillo <manlio.perillo@gmail.com>)
Ответы Re: non intuitive behaviour of DROP TABLE IF EXISTS
Список pgsql-general
Manlio Perillo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi.
>
> I think the following behaviour is not intuitive:
>
> manlio=> DROP TABLE IF EXISTS foo.bar;
> ERROR:  schema "foo" does not exist
>
> The statement should not fail if the schema does not exist

Hmm.  Well, it says TABLE IF EXISTS, not TABLE AND SCHEMA IF EXISTS.
;-)

Not sure if it makes sense to change it.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  PG East:  http://www.enterprisedb.com/community/nav-pg-east-2010.do

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: XML performance tuning