mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Add some const decorations (htup.h)
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517@enterprisedb.com
This commit is contained in:
@ -7437,10 +7437,10 @@ MultiXactIdGetUpdateXid(TransactionId xmax, uint16 t_infomask)
|
|||||||
* checking the hint bits.
|
* checking the hint bits.
|
||||||
*/
|
*/
|
||||||
TransactionId
|
TransactionId
|
||||||
HeapTupleGetUpdateXid(HeapTupleHeader tuple)
|
HeapTupleGetUpdateXid(const HeapTupleHeaderData *tup)
|
||||||
{
|
{
|
||||||
return MultiXactIdGetUpdateXid(HeapTupleHeaderGetRawXmax(tuple),
|
return MultiXactIdGetUpdateXid(HeapTupleHeaderGetRawXmax(tup),
|
||||||
tuple->t_infomask);
|
tup->t_infomask);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -101,7 +101,7 @@ static CommandId GetRealCmax(CommandId combocid);
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
CommandId
|
CommandId
|
||||||
HeapTupleHeaderGetCmin(HeapTupleHeader tup)
|
HeapTupleHeaderGetCmin(const HeapTupleHeaderData *tup)
|
||||||
{
|
{
|
||||||
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ HeapTupleHeaderGetCmin(HeapTupleHeader tup)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CommandId
|
CommandId
|
||||||
HeapTupleHeaderGetCmax(HeapTupleHeader tup)
|
HeapTupleHeaderGetCmax(const HeapTupleHeaderData *tup)
|
||||||
{
|
{
|
||||||
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
CommandId cid = HeapTupleHeaderGetRawCommandId(tup);
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ HeapTupleHeaderGetCmax(HeapTupleHeader tup)
|
|||||||
* changes the tuple in shared buffers.
|
* changes the tuple in shared buffers.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
|
HeapTupleHeaderAdjustCmax(const HeapTupleHeaderData *tup,
|
||||||
CommandId *cmax,
|
CommandId *cmax,
|
||||||
bool *iscombo)
|
bool *iscombo)
|
||||||
{
|
{
|
||||||
|
@ -78,12 +78,12 @@ typedef HeapTupleData *HeapTuple;
|
|||||||
#define HeapTupleIsValid(tuple) PointerIsValid(tuple)
|
#define HeapTupleIsValid(tuple) PointerIsValid(tuple)
|
||||||
|
|
||||||
/* HeapTupleHeader functions implemented in utils/time/combocid.c */
|
/* HeapTupleHeader functions implemented in utils/time/combocid.c */
|
||||||
extern CommandId HeapTupleHeaderGetCmin(HeapTupleHeader tup);
|
extern CommandId HeapTupleHeaderGetCmin(const HeapTupleHeaderData *tup);
|
||||||
extern CommandId HeapTupleHeaderGetCmax(HeapTupleHeader tup);
|
extern CommandId HeapTupleHeaderGetCmax(const HeapTupleHeaderData *tup);
|
||||||
extern void HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
|
extern void HeapTupleHeaderAdjustCmax(const HeapTupleHeaderData *tup,
|
||||||
CommandId *cmax, bool *iscombo);
|
CommandId *cmax, bool *iscombo);
|
||||||
|
|
||||||
/* Prototype for HeapTupleHeader accessors in heapam.c */
|
/* Prototype for HeapTupleHeader accessors in heapam.c */
|
||||||
extern TransactionId HeapTupleGetUpdateXid(HeapTupleHeader tuple);
|
extern TransactionId HeapTupleGetUpdateXid(const HeapTupleHeaderData *tup);
|
||||||
|
|
||||||
#endif /* HTUP_H */
|
#endif /* HTUP_H */
|
||||||
|
Reference in New Issue
Block a user