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

From pgsql@mohawksoft.com
Subject Re: snprintf causes regression tests to fail
Date
Msg-id 16737.24.91.171.78.1109613284.squirrel@mail.mohawksoft.com
Whole thread Raw
In response to Re: snprintf causes regression tests to fail  (Nicolai Tufar <ntufar@gmail.com>)
Responses Re: snprintf causes regression tests to fail  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Linux and Solaris 10 x86 pass regression tests fine when I force the use
> of new
> snprintf().   The problem should be win32 - specific. I will
> investigate it throughly
> tonight. Can someone experienced in win32 what can possibly be the
> problem?

Do we have any idea about what format string causes the regression failure?
It may be that certain integer types are not promoted uniformly when
pushed on the stack.


>
> Nick
>
> On Sun, 27 Feb 2005 19:07:16 +0100, Magnus Hagander <mha@sollentuna.net>
> wrote:
>> Hi!
>>
>> The new snpritnf code appears not to deal with 64-bit ints. I'm getting
>> failures on win32 for int8 as well as all the time related tests (win32
>> uses int8 for tinmestamps). Removing the snprintf code and falling back
>> to the OS code makes everything pass again.
>>
>> I would guess this affects int8 etc on other platforms as well (assuming
>> they use our snprintf and not the libc one), but I haven't checked it.
>>
>> //Magnus
>>
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
>



pgsql-hackers by date:

Previous
From: Evgen Potemkin
Date:
Subject: Re: SQL99 Hierarchical queries
Next
From: Simon Riggs
Date:
Subject: Re: [pgsql-advocacy] Development Plans