Re: get rid of Pointer type, mostly

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: get rid of Pointer type, mostly
Дата
Msg-id CA+Tgmobo9ZMC0h1Z1Te9whf7q3LN7wUkzFLyuxfMZ4dyTNqKnw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: get rid of Pointer type, mostly  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: get rid of Pointer type, mostly
Список pgsql-hackers
On Mon, Nov 24, 2025 at 11:09 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > The second is getting rid of uses of Pointer for variables where you
> > might as well use void * directly.  These are actually not that many.
>
> ... but not of that.  In particular, I think it's just fine if
> DatumGetPointer and PointerGetDatum take and return Pointer.

What's your objection?

(I don't have a considered opinion on this particular point, but in
general I've found that using Pointer seems to make life worse rather
than better.)

--
Robert Haas
EDB: http://www.enterprisedb.com



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