/rtmp/diff

text/x-diff

Filename: /rtmp/diff
Type: text/x-diff
Part: 0
Message: Fix for pg_upgrade

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
contrib/pg_upgrade/relfilenode.c 0 0
diff --git a/contrib/pg_upgrade/relfilenode.c b/contrib/pg_upgrade/relfilenode.c
new file mode 100644
index b20ca20..fc36968
*** a/contrib/pg_upgrade/relfilenode.c
--- b/contrib/pg_upgrade/relfilenode.c
*************** transfer_all_new_dbs(migratorContext *ct
*** 46,51 ****
--- 46,55 ----
  		int			n_maps;
  		pageCnvCtx *pageConverter = NULL;
  
+ 		if (!old_db)
+ 			pg_log(ctx, PG_FATAL,
+ 			   "the new cluster database %s was not found in the old cluster\n", new_db->db_name);
+ 		
  		n_maps = 0;
  		mappings = gen_db_file_maps(ctx, old_db, new_db, &n_maps, old_pgdata,
  									new_pgdata);