Make logical decoding a part of the rmgr.
Jeff Davis <jdavis@postgresql.org>
Make logical decoding a part of the rmgr. Add a new rmgr method, rm_decode, and use that rather than a switch statement. In preparation for rmgr extensibility. Reviewed-by: Julien Rouhaud Discussion: https://postgr.es/m/ed1fb2e22d15d3563ae0eb610f7b61bb15999c0a.camel%40j-davis.com Discussion: https://postgr.es/m/20220118095332.6xtlcjoyxobv6cbk@jrouhaud
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/rmgr.c | modified | +3 −2 |
| src/backend/replication/logical/decode.c | modified | +21 −84 |
| src/bin/pg_rewind/parsexlog.c | modified | +1 −1 |
| src/bin/pg_waldump/rmgrdesc.c | modified | +1 −1 |
| src/include/access/rmgr.h | modified | +1 −1 |
| src/include/access/rmgrlist.h | modified | +22 −22 |
| src/include/access/xlog_internal.h | modified | +5 −0 |
| src/include/replication/decode.h | modified | +15 −1 |
Discussion
- Extensible Rmgr for Table AMs 30 messages · 2021-11-08 → 2022-04-07