Skip to content

Commit de060af

Browse files
committed
Merge branch 'medallia-medallia_xlock_for_drop'
2 parents 0d84624 + dcce8e4 commit de060af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/pg_repack.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,14 @@ repack_one_table(repack_table *table, const char *orderby)
13921392
elog(DEBUG2, "---- drop ----");
13931393

13941394
command("BEGIN ISOLATION LEVEL READ COMMITTED", 0, NULL);
1395+
if (!(lock_exclusive(connection, utoa(table->target_oid, buffer),
1396+
table->lock_table, FALSE)))
1397+
{
1398+
elog(WARNING, "lock_exclusive() failed in connection for %s",
1399+
table->target_name);
1400+
goto cleanup;
1401+
}
1402+
13951403
params[1] = utoa(temp_obj_num, indexbuffer);
13961404
command("SELECT repack.repack_drop($1, $2)", 2, params);
13971405
command("COMMIT", 0, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy