mirror of
https://github.com/postgres/postgres.git
synced 2026-04-26 00:31:07 -04:00
Remove HeapTupleheaderSetXminCommitted/Invalid functions
They are not and never have been used by any known code -- apparently we just cargo-culted them in commit37484ad2aa(or their ancestor macros anyway, which begat these functions in commit34694ec888). Allegedly they're also potentially dangerous; users are better off going through HeapTupleSetHintBits instead. Author: Andy Fan <zhihuifan1213@163.com> Discussion: https://postgr.es/m/87sejogt4g.fsf@163.com
This commit is contained in:
parent
18f0afb2a6
commit
cbef472558
1 changed files with 0 additions and 14 deletions
|
|
@ -357,20 +357,6 @@ HeapTupleHeaderXminFrozen(const HeapTupleHeaderData *tup)
|
|||
return (tup->t_infomask & HEAP_XMIN_FROZEN) == HEAP_XMIN_FROZEN;
|
||||
}
|
||||
|
||||
static inline void
|
||||
HeapTupleHeaderSetXminCommitted(HeapTupleHeaderData *tup)
|
||||
{
|
||||
Assert(!HeapTupleHeaderXminInvalid(tup));
|
||||
tup->t_infomask |= HEAP_XMIN_COMMITTED;
|
||||
}
|
||||
|
||||
static inline void
|
||||
HeapTupleHeaderSetXminInvalid(HeapTupleHeaderData *tup)
|
||||
{
|
||||
Assert(!HeapTupleHeaderXminCommitted(tup));
|
||||
tup->t_infomask |= HEAP_XMIN_INVALID;
|
||||
}
|
||||
|
||||
static inline void
|
||||
HeapTupleHeaderSetXminFrozen(HeapTupleHeaderData *tup)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue