mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Apply PGDLLIMPORT markings broadly.
Up until now, we've had a policy of only marking certain variables in the PostgreSQL header files with PGDLLIMPORT, but now we've decided to mark them all. This means that extensions running on Windows should no longer operate at a disadvantage as compared to extensions running on Linux: if the variable is present in a header file, it should be accessible. Discussion: http://postgr.es/m/CA+TgmoYanc1_FSfimhgiWSqVyP5KKmh5NP2BWNwDhO8Pg2vGYQ@mail.gmail.com
This commit is contained in:
@@ -69,16 +69,16 @@ typedef struct LogicalRepWorker
|
||||
} LogicalRepWorker;
|
||||
|
||||
/* Main memory context for apply worker. Permanent during worker lifetime. */
|
||||
extern MemoryContext ApplyContext;
|
||||
extern PGDLLIMPORT MemoryContext ApplyContext;
|
||||
|
||||
/* libpqreceiver connection */
|
||||
extern struct WalReceiverConn *LogRepWorkerWalRcvConn;
|
||||
extern PGDLLIMPORT struct WalReceiverConn *LogRepWorkerWalRcvConn;
|
||||
|
||||
/* Worker and subscription objects. */
|
||||
extern Subscription *MySubscription;
|
||||
extern LogicalRepWorker *MyLogicalRepWorker;
|
||||
extern PGDLLIMPORT Subscription *MySubscription;
|
||||
extern PGDLLIMPORT LogicalRepWorker *MyLogicalRepWorker;
|
||||
|
||||
extern bool in_remote_transaction;
|
||||
extern PGDLLIMPORT bool in_remote_transaction;
|
||||
|
||||
extern void logicalrep_worker_attach(int slot);
|
||||
extern LogicalRepWorker *logicalrep_worker_find(Oid subid, Oid relid,
|
||||
|
||||
Reference in New Issue
Block a user