@@ -17,8 +17,7 @@ static void transfer_single_new_db(pageCnvCtx *pageConverter,
1717FileNameMap * maps ,int size );
1818static void transfer_relfile (pageCnvCtx * pageConverter ,
1919const char * fromfile ,const char * tofile ,
20- const char * old_nspname ,const char * new_nspname ,
21- const char * old_relname ,const char * new_relname );
20+ const char * nspname ,const char * relname );
2221
2322/* used by scandir(), must be global */
2423char scandir_file_pattern [MAXPGPATH ];
@@ -149,8 +148,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
149148 */
150149unlink (new_file );
151150transfer_relfile (pageConverter ,old_file ,new_file ,
152- maps [mapnum ].old_nspname ,maps [mapnum ].new_nspname ,
153- maps [mapnum ].old_relname ,maps [mapnum ].new_relname );
151+ maps [mapnum ].nspname ,maps [mapnum ].relname );
154152
155153/* fsm/vm files added in PG 8.4 */
156154if (GET_MAJOR_VERSION (old_cluster .major_version ) >=804 )
@@ -173,8 +171,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
173171
174172unlink (new_file );
175173transfer_relfile (pageConverter ,old_file ,new_file ,
176- maps [mapnum ].old_nspname ,maps [mapnum ].new_nspname ,
177- maps [mapnum ].old_relname ,maps [mapnum ].new_relname );
174+ maps [mapnum ].nspname ,maps [mapnum ].relname );
178175}
179176}
180177}
@@ -201,8 +198,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
201198
202199unlink (new_file );
203200transfer_relfile (pageConverter ,old_file ,new_file ,
204- maps [mapnum ].old_nspname ,maps [mapnum ].new_nspname ,
205- maps [mapnum ].old_relname ,maps [mapnum ].new_relname );
201+ maps [mapnum ].nspname ,maps [mapnum ].relname );
206202}
207203}
208204}
@@ -224,8 +220,7 @@ transfer_single_new_db(pageCnvCtx *pageConverter,
224220 */
225221static void
226222transfer_relfile (pageCnvCtx * pageConverter ,const char * old_file ,
227- const char * new_file ,const char * old_nspname ,const char * new_nspname ,
228- const char * old_relname ,const char * new_relname )
223+ const char * new_file ,const char * nspname ,const char * relname )
229224{
230225const char * msg ;
231226
@@ -238,18 +233,17 @@ transfer_relfile(pageCnvCtx *pageConverter, const char *old_file,
238233pg_log (PG_INFO ,"copying %s to %s\n" ,old_file ,new_file );
239234
240235if ((msg = copyAndUpdateFile (pageConverter ,old_file ,new_file , true))!= NULL )
241- pg_log (PG_FATAL ,"error while copying %s.%s(%s) to%s.%s( %s): %s\n" ,
242- old_nspname , old_relname ,old_file , new_nspname , new_relname ,new_file ,msg );
236+ pg_log (PG_FATAL ,"error while copying %s.%s (%s to %s): %s\n" ,
237+ nspname , relname ,old_file ,new_file ,msg );
243238}
244239else
245240{
246241pg_log (PG_INFO ,"linking %s to %s\n" ,old_file ,new_file );
247242
248243if ((msg = linkAndUpdateFile (pageConverter ,old_file ,new_file ))!= NULL )
249244pg_log (PG_FATAL ,
250- "error while creating link from %s.%s(%s) to %s.%s(%s): %s\n" ,
251- old_nspname ,old_relname ,old_file ,new_nspname ,new_relname ,
252- new_file ,msg );
245+ "error while creating link from %s.%s (%s to %s): %s\n" ,
246+ nspname ,relname ,old_file ,new_file ,msg );
253247}
254248return ;
255249}