Re: Proposal: More portable way to support 64bit platforms

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Proposal: More portable way to support 64bit platforms
Дата
Msg-id 200906291740.08294.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Proposal: More portable way to support 64bit platforms  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposal: More portable way to support 64bit platforms  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Monday 29 June 2009 17:20:09 Tom Lane wrote:
> The problem with this is that it's barely the tip of the iceberg.
> One point I recall is that there are lots of places where "%lu" is
> assumed to be the correct format to print Datums with. 

Hmm.  I tried this out.  typedef Datum to be long long int on a 32-bit 
platform and compile.  You get lots of warnings, but none about a format 
problem.  But if you explicitly insert a call like elog(INFO "datum is %lu", 
somedatum), then you see a warning.  So this problem might not be very 
widespread.

> If it were
> actually possible to support Win64 with only a couple of dozen lines
> of changes, we would have done it long since.

Possibly, or everyone was too confused and didn't know where to start.

I think this proposed change is a step in the right direction, and it doesn't 
make things worse for anyone else.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] user mapping extension to pg_ident.conf
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: More portable way to support 64bit platforms