We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d84624 commit dcce8e4Copy full SHA for dcce8e4
bin/pg_repack.c
@@ -1392,6 +1392,14 @@ repack_one_table(repack_table *table, const char *orderby)
1392
elog(DEBUG2, "---- drop ----");
1393
1394
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
+
1403
params[1] = utoa(temp_obj_num, indexbuffer);
1404
command("SELECT repack.repack_drop($1, $2)", 2, params);
1405
command("COMMIT", 0, NULL);
0 commit comments