/usr/share/postgresql/10/extension/unit--3--4.sql is in postgresql-10-unit 5.0-1.
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 16 | -- convert @ from (unit, cstring) to (unit, text)
DROP OPERATOR @ (unit, cstring);
DROP FUNCTION unit_at(unit, cstring);
CREATE FUNCTION unit_at(unit, text)
RETURNS cstring
SET search_path = @extschema@
AS '$libdir/unit', 'unit_at_text'
LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR @ (
leftarg = unit,
rightarg = text,
procedure = unit_at
);
|