17 lines
329 B
C
17 lines
329 B
C
#include <postgres.h>
|
|
#include <fmgr.h>
|
|
|
|
int xid_to_int4(TransactionId xid)
|
|
{
|
|
return xid;
|
|
}
|
|
|
|
/*
|
|
* To bind this into PGSQL, try something like:
|
|
*
|
|
* CREATE FUNCTION xid_to_int4(xid) RETURNS int4
|
|
* AS '/path/to/rails-port/db/functions/libpgosm', 'xid_to_int4'
|
|
* LANGUAGE C IMMUTABLE STRICT;
|
|
*
|
|
* (without all the *s)
|
|
*/
|