dboid = MyDatabaseId;
snprintf(path, MAXPGPATH,
- "pg_llog/mappings/" LOGICAL_REWRITE_FORMAT,
+ "pg_logical/mappings/" LOGICAL_REWRITE_FORMAT,
dboid, relid,
(uint32) (state->rs_begin_lsn >> 32),
(uint32) state->rs_begin_lsn,
xlrec = (xl_heap_rewrite_mapping *) XLogRecGetData(r);
snprintf(path, MAXPGPATH,
- "pg_llog/mappings/" LOGICAL_REWRITE_FORMAT,
+ "pg_logical/mappings/" LOGICAL_REWRITE_FORMAT,
xlrec->mapped_db, xlrec->mapped_rel,
(uint32) (xlrec->start_lsn >> 32),
(uint32) xlrec->start_lsn,
if (cutoff != InvalidXLogRecPtr && redo < cutoff)
cutoff = redo;
- mappings_dir = AllocateDir("pg_llog/mappings");
- while ((mapping_de = ReadDir(mappings_dir, "pg_llog/mappings")) != NULL)
+ mappings_dir = AllocateDir("pg_logical/mappings");
+ while ((mapping_de = ReadDir(mappings_dir, "pg_logical/mappings")) != NULL)
{
struct stat statbuf;
Oid dboid;
strcmp(mapping_de->d_name, "..") == 0)
continue;
- snprintf(path, MAXPGPATH, "pg_llog/mappings/%s", mapping_de->d_name);
+ snprintf(path, MAXPGPATH, "pg_logical/mappings/%s", mapping_de->d_name);
if (lstat(path, &statbuf) == 0 && !S_ISREG(statbuf.st_mode))
continue;
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,
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;
* unless the user used pg_resetxlog or similar. If a user did so, there's
* no hope continuing to decode anyway.
*/
- sprintf(path, "pg_llog/snapshots/%X-%X.snap",
+ sprintf(path, "pg_logical/snapshots/%X-%X.snap",
(uint32) (lsn >> 32), (uint32) lsn);
/*
* be safely on disk.
*/
fsync_fname(path, false);
- fsync_fname("pg_llog/snapshots", true);
+ fsync_fname("pg_logical/snapshots", true);
builder->last_serialized_snapshot = lsn;
goto out;
elog(DEBUG1, "serializing snapshot to %s", path);
/* to make sure only we will write to this tempfile, include pid */
- sprintf(tmppath, "pg_llog/snapshots/%X-%X.snap.%u.tmp",
+ sprintf(tmppath, "pg_logical/snapshots/%X-%X.snap.%u.tmp",
(uint32) (lsn >> 32), (uint32) lsn, MyProcPid);
/*
}
CloseTransientFile(fd);
- fsync_fname("pg_llog/snapshots", true);
+ fsync_fname("pg_logical/snapshots", true);
/*
* We may overwrite the work from some other backend, but that's ok, our
/* make sure we persist */
fsync_fname(path, false);
- fsync_fname("pg_llog/snapshots", true);
+ fsync_fname("pg_logical/snapshots", true);
/*
* Now there's no way we can loose the dumped state anymore, remember this
if (builder->state == SNAPBUILD_CONSISTENT)
return false;
- sprintf(path, "pg_llog/snapshots/%X-%X.snap",
+ sprintf(path, "pg_logical/snapshots/%X-%X.snap",
(uint32) (lsn >> 32), (uint32) lsn);
fd = OpenTransientFile(path, O_RDONLY | PG_BINARY, 0);
* ----
*/
fsync_fname(path, false);
- fsync_fname("pg_llog/snapshots", true);
+ fsync_fname("pg_logical/snapshots", true);
/* read statically sized portion of snapshot */
if (redo < cutoff)
cutoff = redo;
- snap_dir = AllocateDir("pg_llog/snapshots");
- while ((snap_de = ReadDir(snap_dir, "pg_llog/snapshots")) != NULL)
+ snap_dir = AllocateDir("pg_logical/snapshots");
+ while ((snap_de = ReadDir(snap_dir, "pg_logical/snapshots")) != NULL)
{
uint32 hi;
uint32 lo;
strcmp(snap_de->d_name, "..") == 0)
continue;
- snprintf(path, MAXPGPATH, "pg_llog/snapshots/%s", snap_de->d_name);
+ snprintf(path, MAXPGPATH, "pg_logical/snapshots/%s", snap_de->d_name);
if (lstat(path, &statbuf) == 0 && !S_ISREG(statbuf.st_mode))
{