What is the story behind _SPI_PLAN_MAGIC? - Mailing list pgsql-general

From Marcelo Fernandes
Subject What is the story behind _SPI_PLAN_MAGIC?
Date
Msg-id CAM2F1VNM23FRSVq65orFv1M_8GXB8KKEFWaXNj1eid_3QAP4RQ@mail.gmail.com
Whole thread Raw
List 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



pgsql-general by date:

Previous
From: Marcelo Fernandes
Date:
Subject: Logging queries executed by SPI_execute
Next
From: Tom Lane
Date:
Subject: Re: What is the story behind _SPI_PLAN_MAGIC?