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

Commit7870fee

Browse files
committed
Export variables, required by pathman
1 parent663119e commit7870fee

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

‎src/backend/access/transam/xact.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ intDefaultXactIsoLevel = XACT_READ_COMMITTED;
7272
intXactIsoLevel;
7373

7474
boolDefaultXactReadOnly= false;
75-
boolXactReadOnly;
75+
/*
76+
* We need initialization because only initialized vars appear in
77+
* postges.def and accssible from loadable extension
78+
*/
79+
boolXactReadOnly= false;
7680

7781
boolDefaultXactDeferrable= false;
7882
boolXactDeferrable;

‎src/backend/utils/init/globals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include"storage/backendid.h"
2525

2626

27-
ProtocolVersionFrontendProtocol;
27+
ProtocolVersionFrontendProtocol= (ProtocolVersion)0;
2828

2929
volatileboolInterruptPending= false;
3030
volatileboolQueryCancelPending= false;

‎src/include/access/xact.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ extern PGDLLIMPORT int XactIsoLevel;
4545

4646
/* Xact read-only state */
4747
externboolDefaultXactReadOnly;
48-
externboolXactReadOnly;
48+
49+
#definePGPRO_PATHMAN_AWARE_COPY
50+
externPGDLLIMPORTboolXactReadOnly;
4951

5052
/*
5153
* Xact is deferrable -- only meaningful (currently) for read only

‎src/include/libpq/libpq-be.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ extern void be_tls_get_cipher(Port *port, char *ptr, size_t len);
215215
externvoidbe_tls_get_peerdn_name(Port*port,char*ptr,size_tlen);
216216
#endif
217217

218-
externProtocolVersionFrontendProtocol;
218+
externPGDLLIMPORTProtocolVersionFrontendProtocol;
219219

220220
/* TCP keepalives configuration. These are no-ops on an AF_UNIX socket. */
221221

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp