=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> pg-user=# CREATE SCHEMA test_schema;
> CREATE SCHEMA
> pg-user=# CREATE FUNCTION custom_eq(int, int)
> RETURNS BOOL
> LANGUAGE SQL IMMUTABLE AS
> $$
> SELECT $1 = $2;
> $$;
> CREATE FUNCTION
> pg-user=# ALTER FUNCTION custom_eq(int, int) SET SCHEMA test_schema;
> server closed the connection unexpectedly
Huh. Works fine for me. Is the server you're using custom-built?
If so, what build options did you use? If not, where did you get
it from? In either case, the output of pg_config might be useful.
regards, tom lane