Thread: BUG #15328: postgres segfaults on ALTER OPERATOR ... SET SCHEMA ...

BUG #15328: postgres segfaults on ALTER OPERATOR ... SET SCHEMA ...

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      15328
Logged by:          Kai Kratz
Email address:      kai.kratz@googlemail.com
PostgreSQL version: 10.4
Operating system:   Ubuntu18.04
Description:

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.
!>


Re: BUG #15328: postgres segfaults on ALTER OPERATOR ... SET SCHEMA ...

From
Jeff Janes
Date:
On Wed, Aug 15, 2018 at 9:41 AM, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      15328
Logged by:          Kai Kratz
Email address:      kai.kratz@googlemail.com
PostgreSQL version: 10.4
Operating system:   Ubuntu18.04
Description:       

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?