fix: correct pg_stat_user_tables column name in restore drill (relname not tablename)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ab5b12334d
commit
76ae1351ce
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ Verify row counts look sane:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec infra-postgres-1 psql -U custodian custodian \
|
docker exec infra-postgres-1 psql -U custodian custodian \
|
||||||
-c "SELECT schemaname, tablename, n_live_tup FROM pg_stat_user_tables ORDER BY n_live_tup DESC;"
|
-c "SELECT relname, n_live_tup FROM pg_stat_user_tables WHERE n_live_tup > 0 ORDER BY n_live_tup DESC;"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 4 — Restore config files
|
### Step 4 — Restore config files
|
||||||
|
|
@ -251,7 +251,7 @@ age --decrypt \
|
||||||
|
|
||||||
# 3. Check row counts
|
# 3. Check row counts
|
||||||
docker exec restore-test psql -U custodian custodian \
|
docker exec restore-test psql -U custodian custodian \
|
||||||
-c "SELECT tablename, n_live_tup FROM pg_stat_user_tables ORDER BY n_live_tup DESC;"
|
-c "SELECT relname, n_live_tup FROM pg_stat_user_tables WHERE n_live_tup > 0 ORDER BY n_live_tup DESC;"
|
||||||
|
|
||||||
# 4. Clean up
|
# 4. Clean up
|
||||||
docker rm -f restore-test
|
docker rm -f restore-test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue