Skip to content

Commit 0996129

Browse files
committed
disable shared lock for pg_dump
Change-Id: I63de1bbd19cd1638903acbe5fb592dd3f754e6da
1 parent e3e29ce commit 0996129

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bin/pg_dump/parallel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ IsEveryWorkerIdle(ParallelState *pstate)
13051305
static void
13061306
lockTableForWorker(ArchiveHandle *AH, TocEntry *te)
13071307
{
1308+
return;
13081309
const char *qualId;
13091310
PQExpBuffer query;
13101311
PGresult *res;

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7019,11 +7019,13 @@ getTables(Archive *fout, int *numTables)
70197019
tblinfo->relkind == RELKIND_PARTITIONED_TABLE) &&
70207020
(tblinfo[i].dobj.dump & DUMP_COMPONENTS_REQUIRING_LOCK))
70217021
{
7022+
/*
70227023
resetPQExpBuffer(query);
70237024
appendPQExpBuffer(query,
70247025
"LOCK TABLE %s IN ACCESS SHARE MODE",
70257026
fmtQualifiedDumpable(&tblinfo[i]));
70267027
ExecuteSqlStatement(fout, query->data);
7028+
*/
70277029
}
70287030

70297031
/* Emit notice if join for owner failed */

0 commit comments

Comments
 (0)