Re: Convert *GetDatum() and DatumGet*() macros to inline functions

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Convert *GetDatum() and DatumGet*() macros to inline functions
Дата
Msg-id CAJ7c6TNaygq+0mLxUK5j1HWU9LCHKFbZPVa-+xY=P0JiOx=x7w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Convert *GetDatum() and DatumGet*() macros to inline functions  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Convert *GetDatum() and DatumGet*() macros to inline functions  (Robert Haas <robertmhaas@gmail.com>)
Re: Convert *GetDatum() and DatumGet*() macros to inline functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom, Robert,

> Yeah, I don't see a reason to back-patch a change like this

Maybe we should consider backporting at least 0001 patch, partially
perhaps? I believe if fixes pretty cursed pieces of code, e.g:

```
             pg_cryptohash_ctx *context =
-            (pg_cryptohash_ctx *) PointerGetDatum(foundres);
+            (pg_cryptohash_ctx *) DatumGetPointer(foundres);
```

This being said, personally I don't have a strong opinion here. After
all, the code works and passes the tests. Maybe I'm just being a
perfectionist here.

-- 
Best regards,
Aleksander Alekseev



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Reducing the chunk header sizes on all memory context types
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Convert *GetDatum() and DatumGet*() macros to inline functions