Use of LP_DELETE in buffer header

Started by Bruce Momjianabout 25 years ago2 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.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
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)
Re: Use of LP_DELETE in buffer header

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