77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
99 * IDENTIFICATION
10- * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.139 2007/06/07 19:19:57 tgl Exp $
10+ * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.140 2007/07/26 15:15:18 tgl Exp $
1111 *
1212 * NOTES:
1313 *
@@ -549,8 +549,7 @@ LruDelete(File file)
549549
550550/* close the file */
551551if (close (vfdP -> fd ))
552- elog (ERROR ,"failed to close \"%s\": %m" ,
553- vfdP -> fileName );
552+ elog (ERROR ,"could not close file \"%s\": %m" ,vfdP -> fileName );
554553
555554-- nfile ;
556555vfdP -> fd = VFD_CLOSED ;
@@ -985,8 +984,7 @@ FileClose(File file)
985984
986985/* close the file */
987986if (close (vfdP -> fd ))
988- elog (ERROR ,"failed to close \"%s\": %m" ,
989- vfdP -> fileName );
987+ elog (ERROR ,"could not close file \"%s\": %m" ,vfdP -> fileName );
990988
991989-- nfile ;
992990vfdP -> fd = VFD_CLOSED ;
@@ -1005,15 +1003,15 @@ FileClose(File file)
10051003{
10061004if (filestats .st_size >=log_temp_files )
10071005ereport (LOG ,
1008- (errmsg ("temp file: path \"%s\" size %lu" ,
1009- vfdP -> fileName , (unsigned long )filestats .st_size )));
1006+ (errmsg ("temp file: path \"%s\" size %lu" ,
1007+ vfdP -> fileName ,
1008+ (unsigned long )filestats .st_size )));
10101009}
10111010else
1012- elog (LOG ,"Could not stat \"%s\": %m" ,vfdP -> fileName );
1011+ elog (LOG ,"could not stat file \"%s\": %m" ,vfdP -> fileName );
10131012}
10141013if (unlink (vfdP -> fileName ))
1015- elog (LOG ,"failed to unlink \"%s\": %m" ,
1016- vfdP -> fileName );
1014+ elog (LOG ,"could not unlink file \"%s\": %m" ,vfdP -> fileName );
10171015}
10181016
10191017/*
@@ -1022,23 +1020,6 @@ FileClose(File file)
10221020FreeVfd (file );
10231021}
10241022
1025- /*
1026- * close a file and forcibly delete the underlying Unix file
1027- */
1028- void
1029- FileUnlink (File file )
1030- {
1031- Assert (FileIsValid (file ));
1032-
1033- DO_DB (elog (LOG ,"FileUnlink: %d (%s)" ,
1034- file ,VfdCache [file ].fileName ));
1035-
1036- /* force FileClose to delete it */
1037- VfdCache [file ].fdstate |=FD_TEMPORARY ;
1038-
1039- FileClose (file );
1040- }
1041-
10421023int
10431024FileRead (File file ,char * buffer ,int amount )
10441025{