| 1 |
!/dev/shm/PostgreSQL\\.[[:digit:]]+$ f |
| 2 |
|
| 3 |
@@if not defined PG_VERS |
| 4 |
@@define PG_VERS (17) |
| 5 |
@@endif |
| 6 |
@@if not defined PG_PORTS |
| 7 |
@@define PG_PORTS (5432) |
| 8 |
@@endif |
| 9 |
@@if not defined PG_CLUSTERS |
| 10 |
@@define PG_CLUSTERS (main) |
| 11 |
@@endif |
| 12 |
@@define PG_MCL @@{PG_VERS}/@@{PG_CLUSTERS} |
| 13 |
@@define RUNPG @@{RUN}/postgresql |
| 14 |
@@define VLPG var/lib/postgresql |
| 15 |
@@if not defined PG_DBOIDS |
| 16 |
@@define PG_DBOIDS (1|5) |
| 17 |
@@endif |
| 18 |
|
| 19 |
|
| 20 |
/@@{RUNPG}$ d RecreatedDir |
| 21 |
!/@@{RUNPG}/\\.s\\.PGSQL\\.@@{PG_PORTS}$ s |
| 22 |
!/@@{RUNPG}/\\.s\\.PGSQL\\.@@{PG_PORTS}\\.lock$ f |
| 23 |
/@@{RUNPG}/@@{PG_VERS}-@@{PG_CLUSTERS}\\.pg_stat_tmp$ d RecreatedDir |
| 24 |
/@@{RUNPG}/@@{PG_VERS}-@@{PG_CLUSTERS}\\.pid$ f PidFile |
| 25 |
!/@@{RUNPG}/@@{PG_VERS}-@@{PG_CLUSTERS}\\.pg_stat_tmp/(db_[[:digit:]]+|global)\\.stat$ f |
| 26 |
|
| 27 |
/@@{VLPG}/@@{PG_MCL}(pg_stat|/base(/(@@{PG_DBOIDS}|[[:digit:]]{5,6}))?)?$ d VarDir |
| 28 |
!/@@{VLPG}/@@{PG_MCL}/base/[[:digit:]]{5,6}/[[:digit:]]{4,6}(_(fsm|vm))?$ f |
| 29 |
/@@{VLPG}/@@{PG_MCL}/(global|pg_(logical|subtrans|wal|xact))$ d VarDir |
| 30 |
/@@{VLPG}/@@{PG_MCL}/global/pg_control$ f VarFile |
| 31 |
!/@@{VLPG}/@@{PG_MCL}/(base/[[:digit:]]+|global)/pg_internal\\.init$ f |
| 32 |
/@@{VLPG}/@@{PG_MCL}/postmaster\\.opts$ f VarFile |
| 33 |
/@@{VLPG}/@@{PG_MCL}/postmaster\\.pid$ f PidFile |
| 34 |
/@@{VLPG}/@@{PG_MCL}/pg_logical/replorigin_checkpoint$ f VarFile |
| 35 |
/@@{VLPG}/@@{PG_MCL}/pg_xact/00[0-4][[:xdigit:]]$ f VarFile+ANF |
| 36 |
/@@{VLPG}/@@{PG_MCL}/pg_multixact/offsets/0000$ f VarFile |
| 37 |
!/@@{VLPG}/@@{PG_MCL}/pg_subtrans/[[:xdigit:]]{4}$ f |
| 38 |
!/@@{VLPG}/@@{PG_MCL}/pg_wal/[[:xdigit:]]{24}$ f |
| 39 |
|
| 40 |
@@define POSTGRES_LOGDIR var/log/postgresql |
| 41 |
@@define POSTGRES_LOGFILES postgresql-@@{PG_VERS}-@@{PG_CLUSTERS}\\.log |
| 42 |
/@@{POSTGRES_LOGDIR}$ d LogDir |
| 43 |
/@@{POSTGRES_LOGDIR}/@@{POSTGRES_LOGFILES}$ f VarFile |
| 44 |
/@@{POSTGRES_LOGDIR}/@@{POSTGRES_LOGFILES}\\.1$ f RotLog+ANF |
| 45 |
/@@{POSTGRES_LOGDIR}/@@{POSTGRES_LOGFILES}\\.2\\.@@{LOGEXT}$ f CompSerLog |
| 46 |
/@@{POSTGRES_LOGDIR}/@@{POSTGRES_LOGFILES}\\.[3456789]\\.@@{LOGEXT}$ f MidlSerLog |
| 47 |
/@@{POSTGRES_LOGDIR}/@@{POSTGRES_LOGFILES}\\.10\\.@@{LOGEXT}$ f LastSerLog |
| 48 |
|
| 49 |
@@undef PG_VERS |
| 50 |
@@undef PG_PORTS |
| 51 |
@@undef PG_CLUSTERS |
| 52 |
@@undef PG_MCL |
| 53 |
@@undef RUNPG |
| 54 |
@@undef VLPG |