]> granicus.if.org Git - postgresql/commitdiff
Fix copy-and-paste error in logical decoding callback.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Dec 2015 17:17:35 +0000 (12:17 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Dec 2015 17:17:35 +0000 (12:17 -0500)
This could result in the error context misidentifying where the error
actually occurred.

Craig Ringer

src/backend/replication/logical/logical.c

index 1ce90811cc88aaae0cf592f70ed9c465cb9da1be..2e14a3e08895fe613700061ea8c449a64d8792ad 100644 (file)
@@ -683,7 +683,7 @@ filter_by_origin_cb_wrapper(LogicalDecodingContext *ctx, RepOriginId origin_id)
 
        /* Push callback + info on the error context stack */
        state.ctx = ctx;
-       state.callback_name = "shutdown";
+       state.callback_name = "filter_by_origin";
        state.report_location = InvalidXLogRecPtr;
        errcallback.callback = output_plugin_error_callback;
        errcallback.arg = (void *) &state;