On Fri, Sep 9, 2011 at 6:57 AM, Heikki Linnakangas <heikki.linnakan...@enterprisedb.com> wrote: >> In particular, I'd like to know what >> boundaries it is envisaged that the code should be refactored along to >> increase its conceptual integrity, or to better separate concerns. I >> assume that that's the idea, since each new .c file would have to have >> a discrete purpose. > > I'd like to see it split into routines involved in writing WAL, and those > involved in recovery. And maybe a third file for archiving-related stuff.
Having a clean API for working with WAL independently of recovery would let us have a maintainable xlogdump tool that doesn't constantly get out of sync with the wal archive format. It would also make it easier to write things like prefretching logic that requires reading the upcoming xlog before its time to actually replay it. -- greg -- Sent via pgsql-hackers mailing list (email@example.com) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers