Re: [PATCH] Alter or rename enum value

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: [PATCH] Alter or rename enum value
Дата
Msg-id 56F81BBF.7010905@joh.to
обсуждение исходный текст
Ответ на [PATCH] Alter or rename enum value  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Ответы Re: [PATCH] Alter or rename enum value  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Список pgsql-hackers
On 2016-03-27 19:30, Dagfinn Ilmari Mannsåker wrote:
> ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes:
>
>> I was bored and thought "how hard could it be?", and a few hours'
>> hacking later, I have something that seems to work.  It doesn't do IF
>> NOT EXISTS yet, and the error messaging could do with some improvement,
>> and there are no docs.  The patch is attached, as well as at
>> https://github.com/ilmari/postgres/commit/enum-alter-value
>
> Here's v3 of the patch of the patch, which I consider ready for proper
> review.

A couple of trivial comments below.
  +    <term><literal>ALTER VALUE [ IF EXISTST ] TO [ IF NOT EXISTS 
]</literal></term>

typo EXISTST
  +      If <literal>IF EXISTS</literal> or is <literal>IF NOT 
EXISTS</literal>  +      is specified, it is not an error if the type doesn't contain 
the old

double is
  +      if the old value is not alreeady present or the new value is.

typo alreeady
  + * RenameEnumLabel  + *        Add a new label to the enum set. By default it goes at

copypaste-o?
  +    if (!stmt->oldVal) {

not project curly brace style


.m



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

Предыдущее
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
Сообщение: [PATCH] Alter or rename enum value
Следующее
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
Сообщение: Re: [PATCH] Alter or rename enum value