Avoid return from lock_exclusive() while in transaction ..

..causing "ERROR: DROP INDEX CONCURRENTLY cannot run inside a transaction block"
github#129
This commit is contained in:
Justin Pryzby 2017-06-03 23:53:03 -04:00 committed by Masahiko Sawada
parent 20f5bf4878
commit 1b651bd3d9

View File

@ -1780,6 +1780,7 @@ lock_exclusive(PGconn *conn, const char *relid, const char *lock_query, bool sta
{
elog(WARNING, "timed out, do not cancel conflicting backends");
ret = false;
pgut_rollback(conn);
break;
}
else