operator dependency of commutator and negator - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject operator dependency of commutator and negator
Date
Msg-id AANLkTi=m9oGUEsz_zZZ8qUTpoRj6+zMqfBkVymrZn9H5@mail.gmail.com
Whole thread Raw
Responses Re: operator dependency of commutator and negator
List pgsql-hackers
When we drop an operator used by other operators as COMMUTATOR or NEGATOR,
pg_dump generates an invalid SQL command for the operators depending on
the dropped one. Is it an unavoidable restriction?
 CREATE OPERATOR <<< (   PROCEDURE = text_lt, LEFTARG = text, RIGHTARG = text, COMMUTATOR = >>> ); CREATE OPERATOR >>>
(  PROCEDURE = text_gt, LEFTARG = text, RIGHTARG = text, COMMUTATOR = <<< ); DROP OPERATOR >>> (text, text);
 

$ pg_dump
--
-- Name: <<<; Type: OPERATOR; Schema: public; Owner: postgres
--
CREATE OPERATOR <<< (   PROCEDURE = text_lt,   LEFTARG = text,   RIGHTARG = text,   COMMUTATOR = 16395      <== HERE
);


-- 
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Leonardo Francalanci
Date:
Subject: Re: I: About "Our CLUSTER implementation is pessimal" patch
Next
From: Shigeru HANADA
Date:
Subject: Re: patch: SQL/MED(FDW) DDL