docker-user=# CREATE SCHEMA test_schema; CREATE SCHEMA docker-user=# CREATE FUNCTION int_eq(int, int) RETURNS BOOL LANGUAGE SQL IMMUTABLE AS $$ SELECT $1 = $2; $$; CREATE FUNCTION docker-user=# CREATE OPERATOR = (leftarg = int, rightarg = int, procedure = int_eq); CREATE OPERATOR docker-user=# ALTER OPERATOR = (int, int) SET SCHEMA test_schema; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !>
I can't reproduce this, or your subsequent report with domains, either.
How did you install PostgreSQL? Can you give output of pg_config?