fix: correct pg_stat_user_tables column name in restore drill (relname not tablename)
Some checks failed
railiance-tests / smoke (push) Has been cancelled
Some checks failed
railiance-tests / smoke (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user