Re: [PATCHES] snprintf() argument reordering not working - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] snprintf() argument reordering not working
Date
Msg-id 200512042209.jB4M9g004208@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] snprintf() argument reordering not working  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] snprintf() argument reordering not working  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
> > That got me through the backend compile and through libpq to ecpg, which 
> > fell over at the link stage complaining about missing references to 
> > pg_sprintf and pg_snprintf ... not sure how to fix that - windows 
> > experts, please advise.
> 
> Plan A would be to make libpq export pg_snprintf and friends, Plan B
> would be to give ecpg its own copy of snprintf.o.  Plan A is probably
> better since you're going to hit the same issue no doubt in all of the
> src/bin programs.

I am confused why we would need either of these.  All apps use
libpgport, and that pg_*printf should be in that library.  The original
work Andrew did has problems particularly with ecpg, but why does ecpg
cause problems?  Doesn't it link in pgport?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Zoltan Boszormenyi
Date:
Subject: Re: SERIAL type feature request
Next
From: Tino Wildenhain
Date:
Subject: Re: SERIAL type feature request