pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Timur <timur.luchkin@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: CREATE INDEX CONCURRENTLY cannot be executed within a pipeline
Date: Fri, 10 Feb 2023 12:38:43 -0500
Message-ID: <4139340.1676050723@sss.pgh.pa.us> (raw)
In-Reply-To: <56b56a3e-81c0-41eb-ad96-7e5e02fe6357@gmail.com>
References: <56b56a3e-81c0-41eb-ad96-7e5e02fe6357@gmail.com>

Timur <timur.luchkin@gmail.com> writes:
> After the release of PostgreSQL 14.7 Liquibase started to fail with:

> Reason: liquibase.exception.DatabaseException: ERROR: CREATE INDEX 
> CONCURRENTLY cannot be executed within a pipeline [Failed SQL:

You need to report that to the Liquibase authors.  They're
trying to do something that's unsupported, but which we previously
failed to detect.  Basically: you can't do that in a pipeline
because there will already be an open transaction, which would
accidentally get committted by the CREATE INDEX CONCURRENTLY.

			regards, tom lane





view thread (2+ messages)

Message-ID: <4139340.1676050723@sss.pgh.pa.us>
Permalink:  ../4139340.1676050723@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4139340.1676050723@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, timur.luchkin@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: CREATE INDEX CONCURRENTLY cannot be executed within a pipeline
  In-Reply-To: <4139340.1676050723@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox