Исходный код вики Утилиты
Версия 2.3 от Alexandr Fokin на 2022/06/30 20:21
Последние авторы
author | version | line-number | content |
---|---|---|---|
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" %){{code language="bash"}}pg_isready -d <dbname> -h <ip/domain> -p <port> -U <user>{{/code}}((( | ||
16 | |||
17 | |||
18 | Postgres - testing database connection in bash | ||
19 | [[https:~~/~~/stackoverflow.com/questions/26911508/postgres-testing-database-connection-in-bash>>https://stackoverflow.com/questions/26911508/postgres-testing-database-connection-in-bash]] | ||
20 | ))) | ||
21 | |||
22 | ---- | ||
23 | |||
24 | PostgreSQL Apt Repository | ||
25 | https://www.postgresql.org/download/linux/debian/ |