Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55179b0

Browse files
committed
pg_upgrade: preserve freeze info for postgres/template1 dbs
pg_database.datfrozenxid and pg_database.datminmxid were not preservedfor the 'postgres' and 'template1' databases. This could cause missingclog file errors on access to user tables and indexes after upgrades inthese databases.Backpatch through 9.0
1 parent32e6331 commit55179b0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,17 +1325,17 @@ dumpCreateDB(PGconn *conn)
13251325
appendStringLiteralConn(buf,dbname,conn);
13261326
appendPQExpBuffer(buf,";\n");
13271327
}
1328+
}
13281329

1329-
if (binary_upgrade)
1330-
{
1331-
appendPQExpBuffer(buf,"-- For binary upgrade, set datfrozenxid.\n");
1332-
appendPQExpBuffer(buf,"UPDATE pg_catalog.pg_database "
1333-
"SET datfrozenxid = '%u' "
1334-
"WHERE datname = ",
1335-
dbfrozenxid);
1336-
appendStringLiteralConn(buf,dbname,conn);
1337-
appendPQExpBuffer(buf,";\n");
1338-
}
1330+
if (binary_upgrade)
1331+
{
1332+
appendPQExpBuffer(buf,"-- For binary upgrade, set datfrozenxid.\n");
1333+
appendPQExpBuffer(buf,"UPDATE pg_catalog.pg_database "
1334+
"SET datfrozenxid = '%u' "
1335+
"WHERE datname = ",
1336+
dbfrozenxid);
1337+
appendStringLiteralConn(buf,dbname,conn);
1338+
appendPQExpBuffer(buf,";\n");
13391339
}
13401340

13411341
if (!skip_acls&&

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp