Re: [COMMITTERS] pgsql: Don't use OidIsValid to check the return value of

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: [COMMITTERS] pgsql: Don't use OidIsValid to check the return value of
Дата
Msg-id 494D1932.3000207@enterprisedb.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Don't use OidIsValid to check the return value of  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Definitely a necessary fix, but you missed what I think is actually
> causing the crashes:
> 
>           if (PointerIsValid(DatumGetPointer(datum)))
> !             repl_val[Anum_pg_foreign_data_wrapper_fdwoptions - 1] = ObjectIdGetDatum(datum);
> 
> should be
> 
>           if (PointerIsValid(DatumGetPointer(datum)))
> !             repl_val[Anum_pg_foreign_data_wrapper_fdwoptions - 1] = datum;
> 
> ObjectIdGetDatum probably is zeroing the high-order half of the pointer
> datum.

Doh, how could I miss that, on the very next line :-)

> I committed this along with some other cosmetic fixes.

Thanks.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: SQL/MED catalog manipulation facilities This doesn't do any
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major