Исходный код вики Утилиты

Редактировал(а) Alexandr Fokin 2023/12/16 14:12

Последние авторы
1 В linux некоторые утилиты идут в рамках пакета "postgresql-client-<Version>"
2
3 ----
4
5 |=(% style="width: 213px;" %)Название|=(% style="width: 650px;" %)Описание|=(% style="width: 644px;" %)
6 |(% style="width:213px" %)psql|(% style="width:650px" %)Основная консольная утилита для взаимодействия с БД.|(% style="width:644px" %)
7 |(% style="width:213px" %)pg_dump|(% style="width:650px" %)Бекап одной БД.
8 (Можно выбрать отдельные схемы, таблицы. Можно экспортировать только схему)|(% style="width:644px" %)(((
9 Postgres Pro Standard : Документация: 9.5: pg_dump : Компания Postgres Professional
10 https://postgrespro.ru/docs/postgrespro/9.5/app-pgdump
11 )))
12 |(% style="width:213px" %)pg_dumpall|(% style="width:650px" %)Бекап всех БД сервера.|(% style="width:644px" %)
13 |(% style="width:213px" %)pg_restore|(% style="width:650px" %)Восстановление данных из бекапа.|(% style="width:644px" %)Postgres Pro Standard : Документация: 11: pg_restore : Компания Postgres Professional
14 https://postgrespro.ru/docs/postgrespro/11/app-pgrestore
15 |(% style="width:213px" %)pg_isready|(% style="width:650px" %)Проверка соединения|(% style="width:644px" %)(((
16 Postgres Pro Standard : Документация: 11: pg_isready : Компания Postgres Professional
17 [[https:~~/~~/postgrespro.ru/docs/postgrespro/11/app-pg-isready>>https://postgrespro.ru/docs/postgrespro/11/app-pg-isready]]
18
19
20 {{code language="bash"}}
21 pg_isready -d <dbname> -h <ip/domain> -p <port> -U <user>
22 {{/code}}
23
24 (((
25 Postgres - testing database connection in bash
26 [[https:~~/~~/stackoverflow.com/questions/26911508/postgres-testing-database-connection-in-bash>>https://stackoverflow.com/questions/26911508/postgres-testing-database-connection-in-bash]]
27 )))
28 )))
29
30 ----
31
32 PostgreSQL Apt Repository
33 https://www.postgresql.org/download/linux/debian/