Skip to content

Commit 7870fee

Browse files
committed
Export variables, required by pathman
1 parent 663119e commit 7870fee

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 @@ int DefaultXactIsoLevel = XACT_READ_COMMITTED;
7272
int XactIsoLevel;
7373

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

7781
bool DefaultXactDeferrable = false;
7882
bool XactDeferrable;

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-
ProtocolVersion FrontendProtocol;
27+
ProtocolVersion FrontendProtocol = (ProtocolVersion)0;
2828

2929
volatile bool InterruptPending = false;
3030
volatile bool QueryCancelPending = 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
extern bool DefaultXactReadOnly;
48-
extern bool XactReadOnly;
48+
49+
#define PGPRO_PATHMAN_AWARE_COPY
50+
extern PGDLLIMPORT bool XactReadOnly;
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
extern void be_tls_get_peerdn_name(Port *port, char *ptr, size_t len);
216216
#endif
217217

218-
extern ProtocolVersion FrontendProtocol;
218+
extern PGDLLIMPORT ProtocolVersion FrontendProtocol;
219219

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

0 commit comments

Comments
 (0)