diff options
author | Nathan Bossart <nathan@postgresql.org> | 2023-11-27 13:10:09 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2023-11-27 13:10:09 -0600 |
commit | 75680c3d805e2323cd437ac567f0677fdfc7b680 (patch) | |
tree | 128ccf542f551a44e526a55ad2b031eb5daa710e /src/include/executor | |
parent | 8a553f2aed8dfe6cb8cdd0fe78e01b19d4138b35 (diff) |
Retire a few backwards compatibility macros.
As of commits dd04e958c8 and 1833f1a1c3, tuplestore_donestoring(),
SPI_push(), SPI_pop(), SPI_push_conditional(),
SPI_pop_conditional(), and SPI_restore_connection() are no-op
macros provided for backwards compatibility. This commit removes
these macros, so any uses in third-party code will need to be
removed, too. Since these macros have been no-ops for a while,
such adjustments won't produce any behavior changes for all
currently-supported versions of PostgreSQL.
Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACVeO58JM5tK2Qa8QC-%3DkC8sdkJOTd4BFU%3DK8zs4gGYpjQ%40mail.gmail.com
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/spi.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h index d1de139a3b5..d5f04d72755 100644 --- a/src/include/executor/spi.h +++ b/src/include/executor/spi.h @@ -100,13 +100,6 @@ typedef struct _SPI_plan *SPIPlanPtr; #define SPI_OPT_NONATOMIC (1 << 0) -/* These used to be functions, now just no-ops for backwards compatibility */ -#define SPI_push() ((void) 0) -#define SPI_pop() ((void) 0) -#define SPI_push_conditional() false -#define SPI_pop_conditional(pushed) ((void) 0) -#define SPI_restore_connection() ((void) 0) - extern PGDLLIMPORT uint64 SPI_processed; extern PGDLLIMPORT SPITupleTable *SPI_tuptable; extern PGDLLIMPORT int SPI_result; |