Ooops, forgot to commit changes to db/structure.sql
This commit is contained in:
parent
d3d4cff1cf
commit
689821c224
1 changed files with 24 additions and 0 deletions
|
@ -184,6 +184,30 @@ END;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: xid_to_int4(xid); Type: FUNCTION; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE FUNCTION public.xid_to_int4(t xid) RETURNS integer
|
||||||
|
LANGUAGE plpgsql STRICT
|
||||||
|
AS $$
|
||||||
|
DECLARE
|
||||||
|
tl bigint;
|
||||||
|
ti int;
|
||||||
|
BEGIN
|
||||||
|
tl := t;
|
||||||
|
|
||||||
|
IF tl >= 2147483648 THEN
|
||||||
|
tl := tl - 4294967296;
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
ti := tl;
|
||||||
|
|
||||||
|
RETURN ti;
|
||||||
|
END;
|
||||||
|
$$;
|
||||||
|
|
||||||
|
|
||||||
SET default_tablespace = '';
|
SET default_tablespace = '';
|
||||||
|
|
||||||
SET default_with_oids = false;
|
SET default_with_oids = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue