Re: What is the story behind _SPI_PLAN_MAGIC?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What is the story behind _SPI_PLAN_MAGIC?
Дата
Msg-id 290061.1738549023@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: What is the story behind _SPI_PLAN_MAGIC?
Список pgsql-general
Marcelo Fernandes <marcefern7@gmail.com> writes:
> Reading through the SPI code I see this definition:
>   #define _SPI_PLAN_MAGIC 569278163
> What is its purpose?

Just to catch programming errors, ie passing the wrong pointer
value to some SPI function.  See the checks for it in spi.c.

            regards, tom lane



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