From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Move the backup-block logic from XLogInsert to a new file, xlogi |
Date: | 2014-11-07 18:28:05 |
Message-ID: | 20141107182805.GQ1791@alvin.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Heikki Linnakangas wrote:
> Move the backup-block logic from XLogInsert to a new file, xloginsert.c.
>
> xlog.c is huge, this makes it a little bit smaller, which is nice. Functions
> related to putting together the WAL record are in xloginsert.c, and the
> lower level stuff for managing WAL buffers and such are in xlog.c.
>
> Also move the definition of XLogRecord to a separate header file. This
> causes churn in the #includes of all the files that write WAL records, and
> redo routines, but it avoids pulling in xlog.h into most places.
This commit broke the WAL_DEBUG case:
/pgsql/source/brin/src/backend/access/transam/xlog.c: In function 'XLogInsertRecord':
/pgsql/source/brin/src/backend/access/transam/xlog.c:1073:4: error: 'rdt_lastnormal' undeclared (first use in this function)
rdt_lastnormal->next = NULL;
^
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-11-07 19:19:44 | pgsql: Fix generation of SP-GiST vacuum WAL records. |
Previous Message | Heikki Linnakangas | 2014-11-07 13:13:32 | pgsql: Remove obsolete cases from GiST update redo code. |