X-Original-To: pgadmin-support-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 5B6A4CCC62 for ; Fri, 11 Jul 2003 01:29:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 28950-08 for ; Thu, 10 Jul 2003 22:29:20 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5885ECB63C for ; Thu, 10 Jul 2003 13:06:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6AG6aQ3007190; Thu, 10 Jul 2003 12:06:36 -0400 (EDT) To: "Dave Page" Cc: "Donald Fraser" , "[ADMIN]" , "[pgADMIN]" Subject: Re: [ADMIN] Overloading functions that are used by operators. In-reply-to: <03AF4E498C591348A42FC93DEA9661B83AF171@mail.vale-housing.co.uk> References: <03AF4E498C591348A42FC93DEA9661B83AF171@mail.vale-housing.co.uk> Comments: In-reply-to "Dave Page" message dated "Thu, 10 Jul 2003 16:52:50 +0100" Date: Thu, 10 Jul 2003 12:06:35 -0400 Message-ID: <7189.1057853195@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/100 X-Sequence-Number: 1700 "Dave Page" writes: >> I see no such error here ... >> >> regression=# create function pg_catalog.textcat(varchar,text) >> regression-# returns text as 'textcat' language 'internal'; >> CREATE FUNCTION > Andreas (Pflug) reckons it's gone in 7.4, but in 7.3.2 I see: > [ complicated query ] Oh. I'll bet you're running into the regproc-reverse-conversion problem. 'textcat' is one of the histogram values appearing in pg_stats for pg_operator.oprcode, right? The error comes when the planner tries to convert that string back to OID form. We fixed this in 7.4 by modifying the way that pg_statistic stores data values, so that no conversion needs to occur. regards, tom lane