Re: [HACKERS] Cleanup: avoid direct use of ip_posid/ip_blkid

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] Cleanup: avoid direct use of ip_posid/ip_blkid
Дата
Msg-id f41a81e3-1849-dad1-d2c6-9e9ac0e4d056@2ndquadrant.com
обсуждение исходный текст
Ответ на [HACKERS] Cleanup: avoid direct use of ip_posid/ip_blkid  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Ответы Re: [HACKERS] Cleanup: avoid direct use of ip_posid/ip_blkid
Re: [HACKERS] Cleanup: avoid direct use of ip_posid/ip_blkid
Список pgsql-hackers
On 2/22/17 08:38, Pavan Deolasee wrote:
> One reason why these macros are not always used is because they
> typically do assert-validation to ensure ip_posid has a valid value.
> There are a few places in code, especially in GIN and also when we are
> dealing with user-supplied TIDs when we might get a TID with invalid
> ip_posid. I've handled that by defining and using separate macros which
> skip the validation. This doesn't seem any worse than what we are
> already doing.

I wonder why we allow that.  Shouldn't the tid type reject input that
has ip_posid == 0?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] Transactions involving multiple postgres foreign servers
Следующее
От: Jon Nelson
Дата:
Сообщение: Re: [HACKERS] Faster methods for getting SPI results