Update xid_to_int4 to use postgres version 1 calling convention
This commit is contained in:
parent
76d51a2a36
commit
cb0c185ce6
1 changed files with 7 additions and 2 deletions
|
@ -1,11 +1,16 @@
|
||||||
#include <postgres.h>
|
#include <postgres.h>
|
||||||
#include <fmgr.h>
|
#include <fmgr.h>
|
||||||
|
|
||||||
int xid_to_int4(TransactionId xid)
|
Datum
|
||||||
|
xid_to_int4(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
return xid;
|
TransactionId xid = PG_GETARG_INT32(0);
|
||||||
|
|
||||||
|
PG_RETURN_INT32(xid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PG_FUNCTION_INFO_V1(xid_to_int4);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To bind this into PGSQL, try something like:
|
* To bind this into PGSQL, try something like:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue