Use of LP_DELETE in buffer header
Use of LP_DELETE in buffer header
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
I can find no use of LP_DELETE as defined as a flag in storage/itemid.h. A few places test it, but no one sets it. Can anyone else? Can I remove it in 7.2? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Re: Use of LP_DELETE in buffer header
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
> I can find no use of LP_DELETE as defined as a flag in storage/itemid.h. > A few places test it, but no one sets it. > > Can anyone else? Can I remove it in 7.2? Never mind. It is used by work Vadim is doing: --------------------------------------------------------------------------- ************ *** 31,44 **** */ #define LP_USED 0x01 /* this line pointer is being us ed */ - #ifdef XLOG - #define LP_DELETE 0x02 /* item is to be deleted */ #define ItemIdDeleted(itemId) \ (((itemId)->lp_flags & LP_DELETE) != 0) - - #endif -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026