1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Add function to generate PostgreSQL tablespace identifier.

In PostgreSQL >= 9.0 each tablespace data is stored in a specially named directory so different major versions can share the same tablespace path.
This commit is contained in:
David Steele
2019-09-08 06:53:23 -04:00
parent 051128ed9e
commit d957acb36b
3 changed files with 35 additions and 1 deletions

View File

@ -81,6 +81,9 @@ String *pgVersionToStr(unsigned int version);
PgWal pgWalFromFile(const String *walFile);
PgWal pgWalFromBuffer(const Buffer *walBuffer);
// Get the tablespace identifier used to distinguish versions in a tablespace directory, e.g. XXX
String *pgTablespaceId(unsigned int pgVersion);
const String *pgWalName(unsigned int pgVersion);
/***********************************************************************************************************************************