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

Commit3302334

Browse files
committed
In pg_upgrade, copy pg_largeobject_metadata and its index for 9.0+
servers because, like pg_largeobject, it is a system table whosecontents are not dumped by pg_dump --schema-only.
1 parent0857a84 commit3302334

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎contrib/pg_upgrade/info.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,16 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
310310
") OR ( "
311311
"n.nspname = 'pg_catalog' "
312312
"AND relname IN "
313-
" ('pg_largeobject', 'pg_largeobject_loid_pn_index') )) "
313+
" ('pg_largeobject', 'pg_largeobject_loid_pn_index'%s) )) "
314314
"AND relkind IN ('r','t', 'i'%s)"
315315
"GROUP BY c.oid, n.nspname, c.relname, c.relfilenode,"
316316
"c.reltoastrelid, t.spclocation, "
317317
"n.nspname "
318318
"ORDER BY t.spclocation, n.nspname, c.relname;",
319319
FirstNormalObjectId,
320+
/* does pg_largeobject_metadata need to be migrated? */
321+
(GET_MAJOR_VERSION(old_cluster.major_version) <=804) ?
322+
"" :", 'pg_largeobject_metadata', 'pg_largeobject_metadata_oid_index'",
320323
/* see the comment at the top of old_8_3_create_sequence_script() */
321324
(GET_MAJOR_VERSION(old_cluster.major_version) <=803) ?
322325
"" :", 'S'");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp