projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e12a472
)
Remove duplicate assignment when initializing logical decoder context
author
Michael Paquier
Tue, 16 Apr 2019 06:08:38 +0000
(15:08 +0900)
committer
Michael Paquier
Tue, 16 Apr 2019 06:08:38 +0000
(15:08 +0900)
The private data in the WAL reader is already getting set when
allocating it.
Author: Antonin Houska
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/30563.
1555329094
@localhost
src/backend/replication/logical/logical.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/logical/logical.c
b/src/backend/replication/logical/logical.c
index 424fe86a1b68eb03803ec831f71e09ad0bbe34b4..acb4d9a10662d62b9c71788559b92db557bf1442 100644
(file)
--- a/
src/backend/replication/logical/logical.c
+++ b/
src/backend/replication/logical/logical.c
@@
-178,8
+178,6
@@
StartupDecodingContext(List *output_plugin_options,
(errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("out of memory")));
- ctx->reader->private_data = ctx;
-
ctx->reorder = ReorderBufferAllocate();
ctx->snapshot_builder =
AllocateSnapshotBuilder(ctx->reorder, xmin_horizon, start_lsn,