AW: PostgreSQL pre-7.1 Linux/Alpha Status...

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: PostgreSQL pre-7.1 Linux/Alpha Status...
Дата
Msg-id 11C1E6749A55D411A9670001FA687963368190@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: PostgreSQL pre-7.1 Linux/Alpha Status...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Not sure what to do about this.  If you had actually typed 2^64-1040,
> it would be appropriate for the code to reject it.  But I hadn't
> realized that the extra check would introduce a discrepancy between
> 32- and 64-bit machines for negative inputs.  Maybe it'd be 
> better just
> to delete the check.  Comments anyone?

IIRC oid uses int4in/int4out and those should definitely be able to parse 
-1040 into a 4 byte signed long without platform dependency, no ?

pg_dump with OID's dumps those negative numbers if oid > 2^32,
thus this input must imho be made to work correctly.

Andreas


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

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Three types of functions, ala function redux.
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: day 2 results