Re: [PATCHES] Changes in /contrib/fulltextindex - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: [PATCHES] Changes in /contrib/fulltextindex
Date
Msg-id GNELIHDDFBOCMGBFGEFOKEBLCDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: [PATCHES] Changes in /contrib/fulltextindex  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [PATCHES] Changes in /contrib/fulltextindex  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
> Christopher Kings-Lynne wrote:
> > Yeah, I've got it Bruce - I still haven't had time to look into it and I
> > really don't know what to do about the backward compatibility
> issue.  How do
> > I set up 2 identically named C functions with different parameter lists?
>
> Oh, that is easy.  When you CREATE FUNCTION, you just specify the
> different params.  However, if you are calling it _from_ C, then it is
> impossible.  Just break backward compatibility, I think was Tom's
> suggestion, and I agree.

I mean, can I code up 2 functions called "fti" and put them both in the
fti.c and then have them both in the fti.so?  Then when CREATE FUNCTION is
run it will link to the correct function in the fti.so depending on the
parameter list?

It's easy for you guys to say "break backward", but you aren't using it ;)

Chris



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Changes in /contrib/fulltextindex
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Changes in /contrib/fulltextindex