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

Commit85dac37

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 parentce2fcc5 commit85dac37

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
@@ -1302,17 +1302,17 @@ dumpCreateDB(PGconn *conn)
13021302
appendStringLiteralConn(buf,dbname,conn);
13031303
appendPQExpBuffer(buf,";\n");
13041304
}
1305+
}
13051306

1306-
if (binary_upgrade)
1307-
{
1308-
appendPQExpBuffer(buf,"-- For binary upgrade, set datfrozenxid.\n");
1309-
appendPQExpBuffer(buf,"UPDATE pg_catalog.pg_database "
1310-
"SET datfrozenxid = '%u' "
1311-
"WHERE datname = ",
1312-
dbfrozenxid);
1313-
appendStringLiteralConn(buf,dbname,conn);
1314-
appendPQExpBuffer(buf,";\n");
1315-
}
1307+
if (binary_upgrade)
1308+
{
1309+
appendPQExpBuffer(buf,"-- For binary upgrade, set datfrozenxid.\n");
1310+
appendPQExpBuffer(buf,"UPDATE pg_catalog.pg_database "
1311+
"SET datfrozenxid = '%u' "
1312+
"WHERE datname = ",
1313+
dbfrozenxid);
1314+
appendStringLiteralConn(buf,dbname,conn);
1315+
appendPQExpBuffer(buf,";\n");
13161316
}
13171317

13181318
if (!skip_acls&&

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp