/usr/share/gforge/db/20111009-string-aggregate-function.sql is in gforge-db-postgresql 5.3.2+20141104-3+deb8u3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | CREATE OR REPLACE FUNCTION ff_string_add (t1 text, t2 text)
RETURNS text
AS $$
BEGIN
RETURN t1 || ' ioM0Thu6_fieldseparator_kaeph9Ee ' || t2 ;
END;
$$ LANGUAGE plpgsql
IMMUTABLE
RETURNS NULL ON NULL INPUT;
CREATE AGGREGATE ff_string_agg (
basetype = text,
sfunc = ff_string_add,
stype = text
);
|