"At checkpoint time, all dirty data pages are flushed to disk and a special checkpoint record is written to the log file. (The change records were previously flushed to the WAL files.)"
I am confused by what the part in parenthesis means by "previously". This may only reflect my ignorance, but I don't know if "previously" means "in previous versions of Postgres" or "before the checkpoint" or something else.
Mostly because of this, I don't understand what this statement means. Thank you.
"previously" in that sentence means "earlier in time". The "WAL files" are written to during every COMMIT. They constitute a journal of changes that affected the in-memory "pages" and made them "dirty". During a checkpoint a marker entry is written that says a checkpoint has occurred and that every change noted in the WAL files written before the marker entry and now known to exist in the actual data files on disk. Until that happens some of those change may only exist in memory (in the form of dirty data pages).