What is the story behind _SPI_PLAN_MAGIC?

From: Marcelo Fernandes <marcefern7(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: What is the story behind _SPI_PLAN_MAGIC?
Date: 2025-02-03 01:36:13
Message-ID: CAM2F1VNM23FRSVq65orFv1M_8GXB8KKEFWaXNj1eid_3QAP4RQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,

Reading through the SPI code I see this definition:

#define _SPI_PLAN_MAGIC 569278163

Which is used in he _SPI_plan struct in src/include/executor/spi_priv.h:

typedef struct _SPI_plan
{
int magic;
...
}

What is its purpose?

Thank you.
Marcelo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2025-02-03 02:17:03 Re: What is the story behind _SPI_PLAN_MAGIC?
Previous Message Marcelo Fernandes 2025-02-02 23:05:51 Logging queries executed by SPI_execute