error report on slru.c - Mailing list pgsql-patches

From Gaetano Mendola
Subject error report on slru.c
Date
Msg-id cjlsn4$kc6$1@floppy.pyrenet.fr
Whole thread Raw
Responses Re: error report on slru.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi all,
here a patch that
1) Rise the information about the file missing on pg_clog from
    detail to error
2) Insert the offset information also for a missing file


I did it with the 8.0beta2 sources





Regards
Gaetano Mendola


--- slru.c.orig    2004-10-02 10:56:01.000000000 +0200
+++ slru.c    2004-10-02 11:05:40.000000000 +0200
@@ -634,9 +634,8 @@
         case SLRU_OPEN_FAILED:
             ereport(ERROR,
                     (errcode_for_file_access(),
-                errmsg("could not access status of transaction %u", xid),
-                     errdetail("could not open file \"%s\": %m",
-                               path)));
+                errmsg("could not access status of transaction %u"
+                       "could not open file \"%s\": %m ( offset %u ) ", xid, path, offset)));
             break;
         case SLRU_CREATE_FAILED:
             ereport(ERROR,

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Preliminary patch for FRONTEND
Next
From: Mahmoud Taghizadeh
Date:
Subject: FAQ in farsi (txt version)