Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolai Tufar <ntufar(at)gmail(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>,Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org,pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [pgsql-hackers-win32] snprintf causes regression tests to fail
Date: 2005-03-01 22:45:31
Message-ID: 2139.1109717131@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
Nicolai Tufar <ntufar(at)gmail(dot)com> writes:
> Amazingly enough HAVE_LONG_LONG_INT_64 is
> defined when compilation comes to src/port/snprintf.c
> but the result is still wrong. I looked into configure.in
> but the check for HAVE_LONG_LONG_INT_64 is too
> complicated for me to understand. Bruce, could you
> take a look at this? I am 90% sure it is an issue with
> some configure definitions.

Just out of curiosity, do either HAVE_INT64 or HAVE_UINT64 get set
in pg_config.h?  The observed symptoms would be explained if typedef
int64 were ending up as "long" rather than "long long".  Looking at
the #ifdef nest in include/c.h, there are a couple of ways that could
happen, including importing a definition from system header files.

If this were happening, it would presumably break all int8 math not
only snprintf, so I'm not sure it's the story.  As far as I've seen,
no one has actually posted the regression diffs seen in this failure,
so most of us are in the dark about the details of the problem.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Nicolai TufarDate: 2005-03-01 22:57:46
Subject: Re: [HACKERS] snprintf causes regression tests to fail
Previous:From: Nicolai TufarDate: 2005-03-01 22:26:37
Subject: Re: [pgsql-hackers-win32] snprintf causes regression

pgsql-patches by date

Next:From: Nicolai TufarDate: 2005-03-01 23:09:41
Subject: Re: [pgsql-hackers-win32] snprintf causes regression tests to fail
Previous:From: Mark WongDate: 2005-03-01 21:53:10
Subject: Re: [PATCHES] WAL: O_DIRECT and multipage-writer (+ memory leak)

pgsql-hackers-win32 by date

Next:From: Nicolai TufarDate: 2005-03-01 22:57:46
Subject: Re: [HACKERS] snprintf causes regression tests to fail
Previous:From: Nicolai TufarDate: 2005-03-01 22:26:37
Subject: Re: [pgsql-hackers-win32] snprintf causes regression

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group