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:
parent
20f5bf4878
commit
1b651bd3d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user