Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2A8B09F9C59 for ; Tue, 18 Sep 2007 12:13:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 62513-09 for ; Tue, 18 Sep 2007 12:13:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 79B039F9CBE for ; Tue, 18 Sep 2007 12:13:18 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l8IFDAvY004576; Tue, 18 Sep 2007 11:13:10 -0400 (EDT) To: "Sabin Coanda" cc: pgsql-sql@postgresql.org Subject: Re: error dropping operator In-reply-to: References: Comments: In-reply-to "Sabin Coanda" message dated "Tue, 18 Sep 2007 13:55:08 +0300" Date: Tue, 18 Sep 2007 11:13:10 -0400 Message-ID: <4575.1190128390@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/132 X-Sequence-Number: 29345 "Sabin Coanda" writes: > I don't have experience with operators. I built one and when I tried to drop > it I got th efollowing error: cannot drop operator ... because it is > required by the database system. > How do I drop it please ? Well, you need to drop *your* operator, not the similarly named built-in one which is evidently what you tried to do. You have to watch out for search_path gotchas here --- most likely, you need to specify the schema containing your operator explicitly. regards, tom lane