logo       

Re: unknownin/out patch (was [HACKERS] PQescapeBytea is: msg#00214

Subject: Re: unknownin/out patch (was [HACKERS] PQescapeBytea is
Bruce Momjian wrote:
Bruce Momjian wrote:

OK, I have had to apply this additional patch to fix a fmgr.c failure. Would someone please verify that the additional columns I added have the
correct values.  I think this was needed because there were other
changes to include/catalog/pg_proc.h in this area.

OK, I am also seeing this failure on the opr_sanity checks.  I can't
figure out whether it is OK that a unknown conversion function fails
this test.


It looks like this is due to proimplicit which was added on 4/11/02 while this patch was created on 4/7/02. I guess the question is whether or not unknownin/out should be marked proimplicit = 't' or not. If it *does* need to be true, what needs to be done to pass the regression?

Here's the failing test in opr_sanity.out:
If a proc is marked as an implicit cast, then it should be something that the system might actually use as a cast function: name same as the name of its output type, and either one arg that's a different type, or two args where the first is the same as the output type and the second is int4.
SELECT p1.oid, p1.proname
FROM pg_proc as p1
WHERE p1.proimplicit AND
    (NOT EXISTS (SELECT 1 FROM pg_type t WHERE t.oid = p1.prorettype AND
                 t.typname = p1.proname) OR
     NOT ((p1.pronargs = 1 AND p1.proargtypes[0] != prorettype) OR
          (p1.pronargs = 2 AND p1.proargtypes[0] = prorettype AND
           p1.proargtypes[1] = 23)));
 oid | proname
-----+---------
(0 rows)


Joe


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe