Skip to content

Commit e988f79

Browse files
committed
Use HeapTupleGetRawXmin macro instead of HeapTupleHeaderGetRawXmin in
the plperl and plpython
1 parent 69741ac commit e988f79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pl/plperl/plperl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ validate_plperl_function(plperl_proc_ptr *proc_ptr, HeapTuple procTup)
25972597
* This is needed because CREATE OR REPLACE FUNCTION can modify the
25982598
* function's pg_proc entry without changing its OID.
25992599
************************************************************/
2600-
uptodate = (prodesc->fn_xmin == HeapTupleHeaderGetRawXmin(procTup->t_data) &&
2600+
uptodate = (prodesc->fn_xmin == HeapTupleGetRawXmin(procTup) &&
26012601
ItemPointerEquals(&prodesc->fn_tid, &procTup->t_self));
26022602

26032603
if (uptodate)
@@ -2717,7 +2717,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger, bool is_event_trigger)
27172717
(errcode(ERRCODE_OUT_OF_MEMORY),
27182718
errmsg("out of memory")));
27192719
}
2720-
prodesc->fn_xmin = HeapTupleHeaderGetRawXmin(procTup->t_data);
2720+
prodesc->fn_xmin = HeapTupleGetRawXmin(procTup);
27212721
prodesc->fn_tid = procTup->t_self;
27222722

27232723
/* Remember if function is STABLE/IMMUTABLE */

src/pl/plpython/plpy_procedure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ PLy_procedure_create(HeapTuple procTup, Oid fn_oid, bool is_trigger)
184184

185185
proc->proname = pstrdup(NameStr(procStruct->proname));
186186
proc->pyname = pstrdup(procName);
187-
proc->fn_xmin = HeapTupleHeaderGetRawXmin(procTup->t_data);
187+
proc->fn_xmin = HeapTupleGetRawXmin(procTup);
188188
proc->fn_tid = procTup->t_self;
189189
proc->fn_readonly = (procStruct->provolatile != PROVOLATILE_VOLATILE);
190190
proc->is_setof = procStruct->proretset;

0 commit comments

Comments
 (0)