-- Add support for a minimal = operator for xml type.
CREATE FUNCTION xmleq(xml, xml)
    RETURNS bool
    AS  'texteq'
    LANGUAGE INTERNAL IMMUTABLE STRICT;

CREATE OPERATOR = (
    leftarg = xml,
    rightarg = xml,
    procedure = xmleq,
    commutator = =
);

-- Add class so analyze populates pg_statistic.
CREATE OPERATOR CLASS xml_ops
	DEFAULT FOR TYPE xml USING hash AS
		OPERATOR        1       =;
