aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/logical.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-08-08 07:31:52 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-08-08 07:31:52 +0200
commita13421c96c0e8ffa34310f92d03d0e6f3bfa27f8 (patch)
treeef4bb74a671b9f0c2a8969e6fe8c620e29944bfa /src/backend/replication/logical/logical.c
parent7259736a6e5b7c7588fff9578370736a6648acbb (diff)
downloadpostgresql-a13421c96c0e8ffa34310f92d03d0e6f3bfa27f8.tar.gz
postgresql-a13421c96c0e8ffa34310f92d03d0e6f3bfa27f8.zip
Add some const decorations
Diffstat (limited to 'src/backend/replication/logical/logical.c')
-rw-r--r--src/backend/replication/logical/logical.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 42f284b33f6..f5eb6bc3aff 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -82,7 +82,7 @@ static void stream_message_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *tx
static void stream_truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
int nrelations, Relation relations[], ReorderBufferChange *change);
-static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin);
+static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *plugin);
/*
* Make sure the current settings & environment are capable of doing logical
@@ -277,7 +277,7 @@ StartupDecodingContext(List *output_plugin_options,
* startup function.
*/
LogicalDecodingContext *
-CreateInitDecodingContext(char *plugin,
+CreateInitDecodingContext(const char *plugin,
List *output_plugin_options,
bool need_full_snapshot,
XLogRecPtr restart_lsn,
@@ -612,7 +612,7 @@ OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx)
* that it provides the required callbacks.
*/
static void
-LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin)
+LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *plugin)
{
LogicalOutputPluginInit plugin_init;