Hello.<br /><br />Here is the SQL to reproduce the server crash:<br /><br /><br />CREATE SCHEMA bug1 AUTHORIZATION
postgres;<br/><br />SET search_path = bug1, pg_catalog;<br /><br />CREATE FUNCTION bug1.domain_check (integer) RETURNS
boolean<br/> AS <br />$body$<br />SELECT $1 <> 0<br />$body$<br />LANGUAGE sql IMMUTABLE STRICT;<br /><br
/>CREATEDOMAIN bug1."domain" AS integer<br /> CONSTRAINT "check" CHECK (bug1.domain_check(VALUE));<br /><br
/>CREATETYPE bug1.composite AS (<br /> id domain<br />);<br /><br />select '(1)'::bug1.composite;<br /><br />