Re: [HACKERS] Autoconf'd test for int64 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Autoconf'd test for int64
Date
Msg-id 199808232230.SAA25738@candle.pha.pa.us
Whole thread Raw
In response to Autoconf'd test for int64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Applied.  Autoconf run.

> Attached is a patch that uses autoconf to determine whether there is
> a working 64-bit-int type available.
>
> In playing around with it on my machine, I found that gcc provides
> perfectly fine support for "long long" arithmetic ... but sprintf()
> and sscanf(), which are system-supplied, don't work :-(.  So the
> autoconf test program does a cursory test on them too.
>
> If we find that a lot of systems are like this, it might be worth
> the trouble to implement binary<->ASCII conversion of int64 ourselves
> rather than relying on sprintf/sscanf to handle the data type.
>
>             regards, tom lane

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: type coersion (was OR clause status)
Next
From: David Hartwig
Date:
Subject: Re: [INTERFACES] Re: [HACKERS] changes in 6.4