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

Commitaebcf8a

Browse files
committed
[PGPRO-4224] Include guc.h instead of declaring guc variable
Windows build does some magic to export variables from postgres.exe and importthem into the extension. So it is better to include backend include file thanto redeclare variable in the extension code
1 parent5abca54 commitaebcf8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/rumsort.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@
5252
* Below are copied definitions from src/backend/utils/sort/tuplesort.c.
5353
*/
5454

55-
/* GUC variables */
55+
/* GUC variables shouldn't be declared explicitely.
56+
Rather corresponigng include file should be include because it
57+
contains neccessary Windows export/import magic. And part of this
58+
magic should be done during postgres.exe compilation
59+
*/
5660
#ifdefTRACE_SORT
57-
externbooltrace_sort;
61+
#include<utils/guc.h>
5862
#endif
5963

6064
typedefstruct

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp