Re: [HACKERS] how solve diff of API counstruct_md_array between

2006-02-24 Thread Martijn van Oosterhout
On Fri, Feb 24, 2006 at 02:57:19PM -0500, Bruce Momjian wrote: > Yea, that is probably the best you can do currently, but it is pretty > ugly. We have PQserverVersion() in libpq for use by clients, which > does: > > conn->sversion = (100 * vmaj + vmin) * 100 + vrev; > > Perhaps we sh

Re: [HACKERS] how solve diff of API counstruct_md_array between

2006-02-24 Thread Bruce Momjian
Joe Conway wrote: > Martijn van Oosterhout wrote: > > On Thu, Feb 16, 2006 at 08:36:34PM +0100, Pavel Stehule wrote: > >>I use counstruct_md_array function in my Orafunc module. CVS version has > >>diff def now. I am findig way for simple solution of maintaince source code > >>for both version. I

Re: [HACKERS] how solve diff of API counstruct_md_array between

2006-02-16 Thread Joe Conway
Martijn van Oosterhout wrote: On Thu, Feb 16, 2006 at 08:36:34PM +0100, Pavel Stehule wrote: I use counstruct_md_array function in my Orafunc module. CVS version has diff def now. I am findig way for simple solution of maintaince source code for both version. I have PG_VERSION variable, but it'

Re: [HACKERS] how solve diff of API counstruct_md_array between 8.1 and 8.2?

2006-02-16 Thread Martijn van Oosterhout
On Thu, Feb 16, 2006 at 08:36:34PM +0100, Pavel Stehule wrote: > Hello > > I use counstruct_md_array function in my Orafunc module. CVS version has > diff def now. I am findig way for simple solution of maintaince source code > for both version. I have PG_VERSION variable, but it's unusable. Is

[HACKERS] how solve diff of API counstruct_md_array between 8.1 and 8.2?

2006-02-16 Thread Pavel Stehule
Hello I use counstruct_md_array function in my Orafunc module. CVS version has diff def now. I am findig way for simple solution of maintaince source code for both version. I have PG_VERSION variable, but it's unusable. Is there way for contrib's autors differentiate PostgreSQL versions? I don