mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 07:55:02 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/pg_amcheck
Normal file
33
tldr/pg_amcheck
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_amcheck
|
||||
|
||||
> Check for corruption in one or more PostgreSQL databases.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-pgamcheck.html>.
|
||||
|
||||
- Check a specific database:
|
||||
|
||||
`pg_amcheck {{dbname}}`
|
||||
|
||||
- Check all databases:
|
||||
|
||||
`pg_amcheck {{[-a|--all]}}`
|
||||
|
||||
- Check databases matching the specified pattern:
|
||||
|
||||
`pg_amcheck {{[-d|--database]}} {{pattern}}`
|
||||
|
||||
- Check specific tables within a database:
|
||||
|
||||
`pg_amcheck {{[-t|--table]}} {{pattern}} {{dbname}}`
|
||||
|
||||
- Check specific schemas within a database:
|
||||
|
||||
`pg_amcheck {{[-s|--schema]}} {{pattern}} {{dbname}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pg_amcheck {{[-?|--help]}}`
|
||||
Reference in New Issue
Block a user