diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-09-24 16:08:31 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-09-24 16:39:53 -0300 |
commit | 709d003fbd98b975a4fbcb4c5750fa6efaf9ad87 (patch) | |
tree | 27b0ace3e968a4af0a9f2ee433627562e99e92ef /src/backend/access/gist/gistbuild.c | |
parent | a9ae99d0190960ce2d3dd3e5f10e7f4adc3cf203 (diff) | |
download | postgresql-709d003fbd98b975a4fbcb4c5750fa6efaf9ad87.tar.gz |
Rework WAL-reading supporting structs
The state-tracking of WAL reading in various places was pretty messy,
mostly because the ancient physical-replication WAL reading code wasn't
using the XLogReader abstraction. This led to some untidy code. Make
it prettier by creating two additional supporting structs,
WALSegmentContext and WALOpenSegment which keep track of WAL-reading
state. This makes code cleaner, as well as supports more future
cleanup.
Author: Antonin Houska
Reviewed-by: Álvaro Herrera and (older versions) Robert Haas
Discussion: https://postgr.es/m/14984.1554998742@spoje.net
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions