Re: Re: C language function dump problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: C language function dump problem
Date: 2000-07-10 01:13:19
Message-ID: 12641.963191599@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner <pjw(at)rhyme(dot)com(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-07-10 01:21:11 Re: [HACKERS] Re: [SQL] MAX() of 0 records.
Previous Message Philip Warner 2000-07-10 00:38:30 Re: Re: C language function dump problem