"Kevin Grittner" writes:
> Tom Lane wrote:
>> I have not looked to see how many places do that. If it's a reasonably
>> small number of places, I'm OK with getting rid of int4 at the C level.
>> (int2/int8 the same of course.)
> $ find -name '*.h' -or -name '*.c' | egrep -v '/tmp_check/' | xar
Tom Lane wrote:
> I have not looked to see how many places do that. If it's a
reasonably
> small number of places, I'm OK with getting rid of int4 at the C
level.
> (int2/int8 the same of course.)
$ find -name '*.h' -or -name '*.c' | egrep -v '/tmp_check/' | xargs cat
\
| egrep -c '\bint2\
Robert Haas writes:
> On Tue, Jun 19, 2012 at 9:47 AM, Tom Lane wrote:
>> I thought the general idea was to use int32 most places, but int4 in
>> catalog declarations. I don't think it's tremendously important if
>> somebody uses the other though.
> I concur with Peter that TMTOWTDI is not the
On 19 June 2012 20:11, Robert Haas wrote:
> On Tue, Jun 19, 2012 at 9:47 AM, Tom Lane wrote:
>> Peter Eisentraut writes:
>>> What is the latest theory on using int4 vs. int32 in C code?
>>> (equivalently int2, int16)
>>
>> I thought the general idea was to use int32 most places, but int4 in
>> c
On Tue, Jun 19, 2012 at 9:47 AM, Tom Lane wrote:
> Peter Eisentraut writes:
>> What is the latest theory on using int4 vs. int32 in C code?
>> (equivalently int2, int16)
>
> I thought the general idea was to use int32 most places, but int4 in
> catalog declarations. I don't think it's tremendous
Peter Eisentraut writes:
> What is the latest theory on using int4 vs. int32 in C code?
> (equivalently int2, int16)
I thought the general idea was to use int32 most places, but int4 in
catalog declarations. I don't think it's tremendously important if
somebody uses the other though.
> While we
What is the latest theory on using int4 vs. int32 in C code?
(equivalently int2, int16)
I had the idea that using int4 was sort of deprecated, and most code
uses int32, but I've come across several uses of int4 lately that looked
odd to me.
I think the main reason that we define int4 in C is for