Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/spock.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@
#include "spock_shmem.h"
#include "spock.h"

#if PG_VERSION_NUM >= 180000
PG_MODULE_MAGIC_EXT(
.name = "spock",
.version = SPOCK_VERSION
);
#else
PG_MODULE_MAGIC;
#endif

static const struct config_enum_entry SpockConflictResolvers[] = {
/*
Expand Down
9 changes: 9 additions & 0 deletions src/spock_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@

#include "replication/logical.h"

#include "spock.h"

#if PG_VERSION_NUM >= 180000
PG_MODULE_MAGIC_EXT(
.name = "spock_output",
.version = SPOCK_VERSION
);
#else
PG_MODULE_MAGIC;
#endif

extern void _PG_output_plugin_init(OutputPluginCallbacks *cb);

Expand Down
Loading