Re: [pgsql-hackers-win32] snprintf causes regression tests to fail - Mailing list pgsql-hackers

From Nicolai Tufar
Subject Re: [pgsql-hackers-win32] snprintf causes regression tests to fail
Date
Msg-id d809293905030904403042ddef@mail.gmail.com
Whole thread Raw
In response to Re: [pgsql-hackers-win32] snprintf causes regression tests  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [pgsql-hackers-win32] snprintf causes regression
Re: [pgsql-hackers-win32] snprintf causes regression tests
List pgsql-hackers
Dear all,
After struggling for one week to to integrate FreeBSD's vfprintf.c into
PostgreSQL I finally gave up. It is too dependent on underlying
FreeBSD system functions. To incorporate it into PostgreSQL we need
to move vfprintf.c file itself, two dozen files form gdtoa and a half
a dozen __XXtoa.c files scattered in apparently random fashion all
around FreeBSD source tree.

Instead I researched some other implementations of snprintf on
the web released under a license compatible with PostgreSQL's.
The most suitable one I have come upon is Trio
[http://daniel.haxx.se/projects/trio/].
It is distributed under a MIT-like license which, I think will be
compatible with us.

What do you think about it? Shall I abandon FreeBSD and go ahead
ıncorporatıng Trıo?

And by the way, what ıs the conclusıon of snprıntf() vs. pg_snprintf()
and UNIX libraries discussion a week ago? Which one shall
I implement?

Regards,
Nicolai Tufar

pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: fool-toleranced optimizer
Next
From: Tom Lane
Date:
Subject: Re: Current CVS parallel test lock