[PATCH 6/8] Log enough data into the wal to reconstruct logical changes from it if wal_level=logical

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>
Subject: [PATCH 6/8] Log enough data into the wal to reconstruct logical changes from it if wal_level=logical
Date: 2012-09-15 00:39:33
Message-ID: 1347669575-14371-6-git-send-email-andres@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


This adds a new wal_level value 'logical'

Missing cases:
- heap_multi_insert
- primary key changes for updates
- no primary key
- LOG_NEWPAGE
---
src/backend/access/heap/heapam.c | 135 +++++++++++++++++++++++++++++---
src/backend/access/transam/xlog.c | 1 +
src/backend/catalog/index.c | 74 +++++++++++++++++
src/bin/pg_controldata/pg_controldata.c | 2 +
src/include/access/xlog.h | 3 +-
src/include/catalog/index.h | 4 +
6 files changed, 207 insertions(+), 12 deletions(-)

Attachment Content-Type Size
0006-Log-enough-data-into-the-wal-to-reconstruct-logical-.patch text/x-patch 11.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-09-15 00:39:34 [PATCH 7/8] Make InvalidateSystemCaches public
Previous Message Andres Freund 2012-09-15 00:39:32 [PATCH 5/8] Add a new syscache to fetch a pg_class entry via (reltablespace, relfilenode)