diff options
author | Andres Freund <andres@anarazel.de> | 2014-07-02 21:07:47 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-07-02 21:07:47 +0200 |
commit | a36a8fa376631e59d006772bcd30f4f827d7e6b9 (patch) | |
tree | 40bff12aee210615fd99a7bfe48ba30067fb507d /src/backend/replication/logical/reorderbuffer.c | |
parent | 89cf2d5203085a3b74ab8ce1f323c93f8e410473 (diff) | |
download | postgresql-a36a8fa376631e59d006772bcd30f4f827d7e6b9.tar.gz postgresql-a36a8fa376631e59d006772bcd30f4f827d7e6b9.zip |
Rename logical decoding's pg_llog directory to pg_logical.
The old name wasn't very descriptive as of actual contents of the
directory, which are historical snapshots in the snapshots/
subdirectory and mappingdata for rewritten tuples in
mappings/. There's been a fair amount of discussion what would be a
good name. I'm settling for pg_logical because it's likely that
further data around logical decoding and replication will need saving
in the future.
Also add the missing entry for the directory into storage.sgml's list
of PGDATA contents.
Bumps catversion as the data directories won't be compatible.
Diffstat (limited to 'src/backend/replication/logical/reorderbuffer.c')
-rw-r--r-- | src/backend/replication/logical/reorderbuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c index 12960f4997b..3f5c241d95a 100644 --- a/src/backend/replication/logical/reorderbuffer.c +++ b/src/backend/replication/logical/reorderbuffer.c @@ -2788,7 +2788,7 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname) int readBytes; LogicalRewriteMappingData map; - sprintf(path, "pg_llog/mappings/%s", fname); + sprintf(path, "pg_logical/mappings/%s", fname); fd = OpenTransientFile(path, O_RDONLY | PG_BINARY, 0); if (fd < 0) ereport(ERROR, @@ -2908,8 +2908,8 @@ UpdateLogicalMappings(HTAB *tuplecid_data, Oid relid, Snapshot snapshot) size_t off; Oid dboid = IsSharedRelation(relid) ? InvalidOid : MyDatabaseId; - mapping_dir = AllocateDir("pg_llog/mappings"); - while ((mapping_de = ReadDir(mapping_dir, "pg_llog/mappings")) != NULL) + mapping_dir = AllocateDir("pg_logical/mappings"); + while ((mapping_de = ReadDir(mapping_dir, "pg_logical/mappings")) != NULL) { Oid f_dboid; Oid f_relid; |