Re: ALTER TYPE ... ADD VALUE issue

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: ALTER TYPE ... ADD VALUE issue
Дата
Msg-id 544561E9.8070707@aklaver.com
обсуждение исходный текст
Ответ на Re: ALTER TYPE ... ADD VALUE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 10/20/2014 12:03 PM, Tom Lane wrote:
> Victor Yegorov <vyegorov@gmail.com> writes:
>> 2014-10-20 21:43 GMT+03:00 Adrian Klaver <adrian.klaver@aklaver.com>:
>>> With \set AUTOCOMMIT off the COMMIT ended one transaction block and
>>> started another.
>
>> I don't think `COMMIT` starts a new transaction block here,
>> as I can run `VACUUM` after it, and vacuum also cannot be run inside
>> transaction block.
>
> psql knows not to issue BEGIN before a VACUUM command.  It doesn't
> know that about ALTER TYPE ... ADD VALUE.

Forget about the \set confusion, just realized I was ending the \set
with an ; which was causing the message.

>
>             regards, tom lane
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: ALTER TYPE ... ADD VALUE issue
Следующее
От: David G Johnston
Дата:
Сообщение: Re: ALTER TYPE ... ADD VALUE issue