Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-09 00:19:00 +00:00
parent 52f5647220
commit d4e4abca39
60 changed files with 723 additions and 65 deletions

41
tldr/reindexdb Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# reindexdb
> Rebuild indexes in a PostgreSQL database.
> More information: <https://www.postgresql.org/docs/current/app-reindexdb.html>.
- Reindex a specific database:
`reindexdb {{database_name}}`
- Reindex a specific database using connection options:
`reindexdb {{database_name}} {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
- Reindex all databases:
`reindexdb {{[-a|--all]}}`
- Reindex a specific table in a database:
`reindexdb {{database_name}} {{[-t|--table]}} {{table_name}}`
- Reindex a specific index in a database:
`reindexdb {{database_name}} {{[-i|--index]}} {{index_name}}`
- Reindex a specific schema in a database:
`reindexdb {{database_name}} {{[-S|--schema]}} {{schema_name}}`
- Reindex with verbose output:
`reindexdb {{database_name}} {{[-v|--verbose]}}`
- Reindex a database using multiple parallel jobs:
`reindexdb {{database_name}} {{[-j|--jobs]}} {{number_of_jobs}}`