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

From Andres Freund
Subject [PATCH 6/8] Log enough data into the wal to reconstruct logical changes from it if wal_level=logical
Date
Msg-id 1347669575-14371-6-git-send-email-andres@2ndquadrant.com
Whole thread Raw
In response to [RFC][PATCH] wal decoding, attempt #2  (Andres Freund <andres@2ndquadrant.com>)
List 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

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: [PATCH 3/8] Add support for a generic wal reading facility dubbed XLogReader
Next
From: Andres Freund
Date:
Subject: [PATCH 5/8] Add a new syscache to fetch a pg_class entry via (reltablespace, relfilenode)