From: | pgsql(at)mohawksoft(dot)com |
---|---|
To: | "Nicolai Tufar" <ntufar(at)gmail(dot)com> |
Cc: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Magnus Hagander" <mha(at)sollentuna(dot)net>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>, "PostgreSQL Win32 port list" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: [pgsql-hackers-win32] snprintf causes regression |
Date: | 2005-03-09 15:38:27 |
Message-ID: | 16510.24.91.171.78.1110382707.squirrel@mail.mohawksoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-hackers-win32 pgsql-patches |
From what I recall from the conversation, I would say rename the vsprintf
and the sprintf functions in postgres to pq_vsnprintf and pq_snprintf.
Define a couple macros: (in some common header, pqprintf.h?)
#define snprintf pq_snprintf
#define vsnprintf pq_snprintf
Then just maintain the postgres forms of printf which have seemed to be OK
except that on Win32 vnsprintf, although in the same object file was not
being used.
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2005-03-09 15:44:42 | Re: fool-toleranced optimizer |
Previous Message | Christopher Kings-Lynne | 2005-03-09 15:17:45 | Re: Current CVS parallel test lock |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-03-10 03:51:27 | Re: [pgsql-hackers-win32] snprintf causes regression tests |
Previous Message | Nicolai Tufar | 2005-03-09 12:40:24 | Re: [pgsql-hackers-win32] snprintf causes regression tests to fail |
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Kiger | 2005-03-09 20:52:19 | Functions and transactions |
Previous Message | Nicolai Tufar | 2005-03-09 12:40:24 | Re: [pgsql-hackers-win32] snprintf causes regression tests to fail |