Re: use of int4/int32 in C code
| От | Tom Lane | 
|---|---|
| Тема | Re: use of int4/int32 in C code | 
| Дата | |
| Msg-id | 24568.1340143315@sss.pgh.pa.us обсуждение исходный текст  | 
		
| Ответ на | Re: use of int4/int32 in C code ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) | 
| Список | pgsql-hackers | 
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.us> 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 '\bint4\b'
> 570
That one looks like a lot, but a quick eyeball check suggests that many
of them are in comments and/or embedded SQL fragments where they
actually represent references to the SQL datatype, and so should be
left alone.  The impression I get is that the actual typedef uses are
concentrated in a couple of contrib modules and some of the tsearch
stuff, where they'd probably not be that painful to fix.
        regards, tom lane
		
	В списке pgsql-hackers по дате отправления: