Re: Re: C language function dump problem - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: C language function dump problem
Date
Msg-id 12641.963191599@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: C language function dump problem  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Re: C language function dump problem
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> Looking at the code, it *seems* that I should be able to (in pseudo-code):

> if ( finfo[i].probin != "-")
>     defn = defn || "AS " || finfo[i].probin;

> if ( finfo[i].prosrc != "-")
>     defn = defn || "AS " || finfo[i].prosrc;

Not quite; I think the correct syntax for C functions is
AS 'probin', 'prosrc'

Also I'm not real sure that the unused field will be "-" for all the
other languages --- but if that's true you could make it work.  Not
hardwiring the language OIDs would definitely be a Good Thing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: Re: C language function dump problem
Next
From: Tom Lane
Date:
Subject: Re: Re: [SQL] MAX() of 0 records.