]> git.openstreetmap.org Git - rails.git/blobdiff - db/functions/xid_to_int4.c
Remove xid_to_int4 postgres function
[rails.git] / db / functions / xid_to_int4.c
diff --git a/db/functions/xid_to_int4.c b/db/functions/xid_to_int4.c
deleted file mode 100644 (file)
index e312b5f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <postgres.h>
-#include <fmgr.h>
-
-Datum
-xid_to_int4(PG_FUNCTION_ARGS)
-{
-   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:
- *
- * 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)
- */