Re: Patch: create or replace language

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch: create or replace language
Дата
Msg-id 917.1254838434@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Patch: create or replace language  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Ответы Re: Patch: create or replace language  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
"Andreas 'ads' Scherbaum" <adsmail@wars-nicht.de> writes:
> following this old discussion:
> http://archives.postgresql.org/pgsql-patches/2008-03/msg00402.php
> i modifies the patch to use the "CREATE [OR REPLACE] LANGUAGE" syntax.

This is not an "OR REPLACE" operation, because it doesn't replace
the existing definition.  What you've got here is a CREATE IF NOT EXISTS
implementation that arbitrarily uses the other syntax.  The point of
the previous discussion was summed up here:
http://archives.postgresql.org/pgsql-patches/2008-03/msg00416.php
namely that CREATE OR REPLACE should leave the object having the
properties specified in the command.
        regards, tom lane


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

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: [PATCH] DefaultACLs
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Patch: create or replace language