Re: pgsql: Throw error for ALTER TABLE RESET of an invalid option

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgsql: Throw error for ALTER TABLE RESET of an invalid option
Дата
Msg-id 20140826000757.GE14956@momjian.us
обсуждение исходный текст
Ответ на Re: pgsql: Throw error for ALTER TABLE RESET of an invalid option  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Mon, Aug 25, 2014 at 07:44:06PM -0400, Tom Lane wrote:
> A larger point is that we could easily consider RESET as meaning
> "remove this option *if it's applied to this relation*", which would
> mean that resetting a nonexistent option shouldn't be an error.
> If we don't define the action that way, then should RESET foo, where
> foo is a valid option that's not been set on the particular table,
> be an error?  If not, what's the argument for allowing that case
> and not this one?  Do we need a RESET IF EXISTS to cover that?
>
> Please revert and return the patch for further work/discussion.
> We had consensus on a vague idea, not the details of this particular
> patch.

OK, that makes sense.  Reverted.

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

  + Everyone has their own god. +


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: revert "Throw error for ALTER TABLE RESET of an invalid option"
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pg_upgrade docs: update docs for 8.3 support removal