Re: pg_upgrade

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_upgrade
Дата
Msg-id 28246.1285705346@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_upgrade  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Bruce Momjian <bruce@momjian.us> writes:
> Interesting.  Odd it would report the max 32-bit signed int.  I wonder
> if it somehow is getting set to -1.  I looked briefly at the pg_upgrade
> code and it appears to put all oids in unsigned ints.

On some platforms, that's what you'll get if you feed a value larger
than 2^31 to atoi() and related functions.  I will bet lunch that this
behavior reflects an attempt to use signed-integer input functions on
OID values.  You need to check the string conversion code itself, not
just the declared type of the result variables.

            regards, tom lane

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Documentation enhancement
Следующее
От: Brian Hirt
Дата:
Сообщение: Re: pg_upgrade