@@ -1355,14 +1355,17 @@ ReorderBufferCommit(ReorderBuffer *rb, TransactionId xid,
1355
1355
change -> data .tp .oldtuple == NULL )
1356
1356
continue ;
1357
1357
else if (reloid == InvalidOid )
1358
- elog (ERROR ,"could not lookup relation %s" ,
1359
- relpathperm (change -> data .tp .relnode ,MAIN_FORKNUM ));
1358
+ elog (ERROR ,"could not map filenode \"%s\" to relation OID" ,
1359
+ relpathperm (change -> data .tp .relnode ,
1360
+ MAIN_FORKNUM ));
1360
1361
1361
1362
relation = RelationIdGetRelation (reloid );
1362
1363
1363
1364
if (relation == NULL )
1364
- elog (ERROR ,"could open relation descriptor %s" ,
1365
- relpathperm (change -> data .tp .relnode ,MAIN_FORKNUM ));
1365
+ elog (ERROR ,"could not open relation with OID %u (for filenode \"%s\")" ,
1366
+ reloid ,
1367
+ relpathperm (change -> data .tp .relnode ,
1368
+ MAIN_FORKNUM ));
1366
1369
1367
1370
if (RelationIsLogicallyLogged (relation ))
1368
1371
{
@@ -1475,7 +1478,7 @@ ReorderBufferCommit(ReorderBuffer *rb, TransactionId xid,
1475
1478
1476
1479
/* this is just a sanity check against bad output plugin behaviour */
1477
1480
if (GetCurrentTransactionIdIfAny ()!= InvalidTransactionId )
1478
- elog (ERROR ,"output plugin usedxid %u" ,
1481
+ elog (ERROR ,"output plugin usedXID %u" ,
1479
1482
GetCurrentTransactionId ());
1480
1483
1481
1484
/* make sure there's no cache pollution */
@@ -1903,7 +1906,7 @@ ReorderBufferSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
1903
1906
Size spilled = 0 ;
1904
1907
char path [MAXPGPATH ];
1905
1908
1906
- elog (DEBUG2 ,"spill %u changes intx %u to disk" ,
1909
+ elog (DEBUG2 ,"spill %u changes inXID %u to disk" ,
1907
1910
(uint32 )txn -> nentries_mem ,txn -> xid );
1908
1911
1909
1912
/* do the same to all child TXs */
@@ -2086,7 +2089,7 @@ ReorderBufferSerializeChange(ReorderBuffer *rb, ReorderBufferTXN *txn,
2086
2089
CloseTransientFile (fd );
2087
2090
ereport (ERROR ,
2088
2091
(errcode_for_file_access (),
2089
- errmsg ("could not write toxid %u's data file: %m" ,
2092
+ errmsg ("could not write to data file for XID %u : %m" ,
2090
2093
txn -> xid )));
2091
2094
}
2092
2095
@@ -2189,7 +2192,7 @@ ReorderBufferRestoreChanges(ReorderBuffer *rb, ReorderBufferTXN *txn,
2189
2192
else if (readBytes != sizeof (ReorderBufferDiskChange ))
2190
2193
ereport (ERROR ,
2191
2194
(errcode_for_file_access (),
2192
- errmsg ("incomplete read from reorderbuffer spill file: read %d instead of %u" ,
2195
+ errmsg ("incomplete read from reorderbuffer spill file: read %d instead of %u bytes " ,
2193
2196
readBytes ,
2194
2197
(uint32 )sizeof (ReorderBufferDiskChange ))));
2195
2198
@@ -2209,7 +2212,7 @@ ReorderBufferRestoreChanges(ReorderBuffer *rb, ReorderBufferTXN *txn,
2209
2212
else if (readBytes != ondisk -> size - sizeof (ReorderBufferDiskChange ))
2210
2213
ereport (ERROR ,
2211
2214
(errcode_for_file_access (),
2212
- errmsg ("could not read from reorderbuffer spill file: read %d instead of %u" ,
2215
+ errmsg ("could not read from reorderbuffer spill file: read %d instead of %u bytes " ,
2213
2216
readBytes ,
2214
2217
(uint32 ) (ondisk -> size - sizeof (ReorderBufferDiskChange )))));
2215
2218
@@ -2815,7 +2818,7 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname)
2815
2818
else if (readBytes != sizeof (LogicalRewriteMappingData ))
2816
2819
ereport (ERROR ,
2817
2820
(errcode_for_file_access (),
2818
- errmsg ("could not read file \"%s\", read %d instead of %d" ,
2821
+ errmsg ("could not readfrom file \"%s\": read %d instead of %d bytes " ,
2819
2822
path ,readBytes ,
2820
2823
(int32 )sizeof (LogicalRewriteMappingData ))));
2821
2824
@@ -2928,7 +2931,7 @@ UpdateLogicalMappings(HTAB *tuplecid_data, Oid relid, Snapshot snapshot)
2928
2931
if (sscanf (mapping_de -> d_name ,LOGICAL_REWRITE_FORMAT ,
2929
2932
& f_dboid ,& f_relid ,& f_hi ,& f_lo ,
2930
2933
& f_mapped_xid ,& f_create_xid )!= 6 )
2931
- elog (ERROR ,"could not parsefname %s " ,mapping_de -> d_name );
2934
+ elog (ERROR ,"could not parsefilename \"%s\" " ,mapping_de -> d_name );
2932
2935
2933
2936
f_lsn = ((uint64 )f_hi ) <<32 |f_lo ;
2934
2937
@@ -2971,7 +2974,7 @@ UpdateLogicalMappings(HTAB *tuplecid_data, Oid relid, Snapshot snapshot)
2971
2974
for (off = 0 ;off < list_length (files );off ++ )
2972
2975
{
2973
2976
RewriteMappingFile * f = files_a [off ];
2974
- elog (DEBUG1 ,"applying mapping:%s in %u" ,f -> fname ,
2977
+ elog (DEBUG1 ,"applying mapping:\"%s\" in %u" ,f -> fname ,
2975
2978
snapshot -> subxip [0 ]);
2976
2979
ApplyLogicalMappingFile (tuplecid_data ,relid ,f -> fname );
2977
2980
pfree (f );