| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера