We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent573e446 commit3245bd5Copy full SHA for 3245bd5
contrib/pg_upgrade/info.c
@@ -327,19 +327,17 @@ get_rel_infos(migratorContext *ctx, const DbInfo *dbinfo,
327
"AND c.oid >= %u "
328
") OR ( "
329
"n.nspname = 'pg_catalog' "
330
-"AND (relname = 'pg_largeobject' OR "
331
-" relname = 'pg_largeobject_loid_pn_index') )) "
332
-"AND "
333
-"(relkind = 'r' OR relkind = 't' OR "
334
-" relkind = 'i'%s)"
+"AND relname IN "
+" ('pg_largeobject', 'pg_largeobject_loid_pn_index') )) "
+"AND relkind IN ('r','t', 'i'%s)"
335
"GROUP BY c.oid, n.nspname, c.relname, c.relfilenode,"
336
"c.reltoastrelid, t.spclocation, "
337
"n.nspname "
338
"ORDER BY n.nspname, c.relname;",
339
FirstNormalObjectId,
340
/* see the comment at the top of old_8_3_create_sequence_script() */
341
(GET_MAJOR_VERSION(ctx->old.major_version) <=803) ?
342
-"" :" OR relkind = 'S'");
+"" :", 'S'");
343
344
res=executeQueryOrDie(ctx,conn,query);
345