aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/logicalfuncs.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-10-01 13:13:59 +0200
committerAndres Freund <andres@anarazel.de>2014-10-01 13:21:59 +0200
commitce84b0682cd169738797f74ec8acc1701b9da40c (patch)
tree53eeedf398326538b313026516a7e3e24e9bcd86 /src/backend/replication/logical/logicalfuncs.c
parentf78319fec8eb8aed34d6e1e43ca35fb0a9bfe108 (diff)
downloadpostgresql-ce84b0682cd169738797f74ec8acc1701b9da40c.tar.gz
postgresql-ce84b0682cd169738797f74ec8acc1701b9da40c.zip
Improve documentation about binary/textual output mode for output plugins.
Discussion: CAB7nPqQrqFzjqCjxu4GZzTrD9kpj6HMn9G5aOOMwt1WZ8NfqeA@mail.gmail.com, CAB7nPqQXc_+g95zWnqaa=mVQ4d3BVRs6T41frcEYi2ocUrR3+A@mail.gmail.com Per discussion between Michael Paquier, Robert Haas and Andres Freund Backpatch to 9.4 where logical decoding was introduced.
Diffstat (limited to 'src/backend/replication/logical/logicalfuncs.c')
-rw-r--r--src/backend/replication/logical/logicalfuncs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/replication/logical/logicalfuncs.c b/src/backend/replication/logical/logicalfuncs.c
index a3a58e6a49c..022ebf3637b 100644
--- a/src/backend/replication/logical/logicalfuncs.c
+++ b/src/backend/replication/logical/logicalfuncs.c
@@ -401,7 +401,9 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin
ctx->options.output_type != OUTPUT_PLUGIN_TEXTUAL_OUTPUT)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("output plugin cannot produce binary output")));
+ errmsg("logical decoding output plugin \"%s\" produces binary output, but \"%s\" expects textual data",
+ NameStr(MyReplicationSlot->data.plugin),
+ format_procedure(fcinfo->flinfo->fn_oid))));
ctx->output_writer_private = p;