@@ -47,33 +47,33 @@ gen_db_file_maps(DbInfo *old_db, DbInfo *new_db,
47
47
48
48
for (relnum = 0 ;relnum < old_db -> rel_arr .nrels ;relnum ++ )
49
49
{
50
- RelInfo * oldrel = & old_db -> rel_arr .rels [relnum ];
51
- RelInfo * newrel ;
50
+ RelInfo * old_rel = & old_db -> rel_arr .rels [relnum ];
51
+ RelInfo * new_rel ;
52
52
53
53
/* toast tables are handled by their parents */
54
- if (strcmp (oldrel -> nspname ,"pg_toast" )== 0 )
54
+ if (strcmp (old_rel -> nspname ,"pg_toast" )== 0 )
55
55
continue ;
56
56
57
- newrel = relarr_lookup_rel_name (& old_cluster ,& old_db -> rel_arr ,
58
- oldrel -> nspname ,oldrel -> relname );
57
+ new_rel = relarr_lookup_rel_name (& new_cluster ,& new_db -> rel_arr ,
58
+ old_rel -> nspname ,old_rel -> relname );
59
59
60
60
create_rel_filename_map (old_pgdata ,new_pgdata ,old_db ,new_db ,
61
- oldrel , newrel ,maps + num_maps );
61
+ old_rel , new_rel ,maps + num_maps );
62
62
num_maps ++ ;
63
63
64
64
/*
65
65
* So much for mapping this relation; now we need a mapping
66
66
* for its corresponding toast relation and toast index, if any.
67
67
*/
68
- if (oldrel -> toastrelid > 0 )
68
+ if (old_rel -> toastrelid > 0 )
69
69
{
70
70
char old_name [MAXPGPATH ],new_name [MAXPGPATH ];
71
71
RelInfo * old_toast ,* new_toast ;
72
72
73
73
old_toast = relarr_lookup_rel_oid (& old_cluster ,& old_db -> rel_arr ,
74
- oldrel -> toastrelid );
74
+ old_rel -> toastrelid );
75
75
new_toast = relarr_lookup_rel_oid (& new_cluster ,& new_db -> rel_arr ,
76
- newrel -> toastrelid );
76
+ new_rel -> toastrelid );
77
77
78
78
create_rel_filename_map (old_pgdata ,new_pgdata ,old_db ,new_db ,
79
79
old_toast ,new_toast ,maps + num_maps );