OSDN Git Service

Make use of new error context stack mechanism to allow random errors
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 10 May 2003 19:04:30 +0000 (19:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 10 May 2003 19:04:30 +0000 (19:04 +0000)
commita4e775a263317a23607eb1a6ea8205a185385a4b
tree17f89b658d7223dc67d77ccf571be2c95dae5973
parentecc8c3652e80e7f444e7abb71206b7381cd1b606
Make use of new error context stack mechanism to allow random errors
detected during buffer dump to be labeled with the buffer location.
For example, if a page LSN is clobbered, we now produce something like
ERROR:  XLogFlush: request 2C000000/8468EC8 is not satisfied --- flushed only
to 0/8468EF0
CONTEXT:  writing block 0 of relation 428946/566240
whereas before there was no convenient way to find out which page had
been trashed.
src/backend/storage/buffer/bufmgr.c