Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75680c3

Browse files
Retire a few backwards compatibility macros.
As of commitsdd04e95 and1833f1a, tuplestore_donestoring(),SPI_push(), SPI_pop(), SPI_push_conditional(),SPI_pop_conditional(), and SPI_restore_connection() are no-opmacros provided for backwards compatibility. This commit removesthese macros, so any uses in third-party code will need to beremoved, too. Since these macros have been no-ops for a while,such adjustments won't produce any behavior changes for allcurrently-supported versions of PostgreSQL.Author: Bharath RupireddyDiscussion:https://postgr.es/m/CALj2ACVeO58JM5tK2Qa8QC-%3DkC8sdkJOTd4BFU%3DK8zs4gGYpjQ%40mail.gmail.com
1 parent8a553f2 commit75680c3

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

‎src/include/executor/spi.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ typedef struct _SPI_plan *SPIPlanPtr;
100100

101101
#defineSPI_OPT_NONATOMIC(1 << 0)
102102

103-
/* These used to be functions, now just no-ops for backwards compatibility */
104-
#defineSPI_push()((void) 0)
105-
#defineSPI_pop()((void) 0)
106-
#defineSPI_push_conditional()false
107-
#defineSPI_pop_conditional(pushed) ((void) 0)
108-
#defineSPI_restore_connection()((void) 0)
109-
110103
externPGDLLIMPORTuint64SPI_processed;
111104
externPGDLLIMPORTSPITupleTable*SPI_tuptable;
112105
externPGDLLIMPORTintSPI_result;

‎src/include/utils/tuplestore.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ extern void tuplestore_puttuple(Tuplestorestate *state, HeapTuple tuple);
5656
externvoidtuplestore_putvalues(Tuplestorestate*state,TupleDesctdesc,
5757
constDatum*values,constbool*isnull);
5858

59-
/* Backwards compatibility macro */
60-
#definetuplestore_donestoring(state)((void) 0)
61-
6259
externinttuplestore_alloc_read_pointer(Tuplestorestate*state,inteflags);
6360

6461
externvoidtuplestore_select_read_pointer(Tuplestorestate*state,intptr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp