Re: ALTER TYPE ... ADD VALUE issue - Mailing list pgsql-general

From Tom Lane
Subject Re: ALTER TYPE ... ADD VALUE issue
Date
Msg-id 16634.1413831804@sss.pgh.pa.us
Whole thread Raw
In response to Re: ALTER TYPE ... ADD VALUE issue  (Victor Yegorov <vyegorov@gmail.com>)
Responses Re: ALTER TYPE ... ADD VALUE issue
Re: ALTER TYPE ... ADD VALUE issue
List pgsql-general
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.

            regards, tom lane


pgsql-general by date:

Previous
From: Victor Yegorov
Date:
Subject: Re: ALTER TYPE ... ADD VALUE issue
Next
From: Adrian Klaver
Date:
Subject: Re: ALTER TYPE ... ADD VALUE issue