Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d2e6063

Browse files
authored
Update README.md
1 parent 759efc0 commit d2e6063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,12 +2213,12 @@ pg_dump -U postgres -h 127.0.0.1 --exclude-table=_* --dbname={database_src} --sc
22132213
Двумя командами, только одну таблицу, через промежуточный сжатый файл.
22142214
```bash
22152215
#на сервере A:
2216-
pg_dump -U postgres -h 127.0.0.1 -t my_table --clean --if-exists my_database_src | pv | pzstd -19 > my_table.sql.zst
2216+
pg_dump -U postgres -h 127.0.0.1 --table=my_table --clean --if-exists my_database_src | pv | pzstd -19 > my_table.sql.zst
22172217

22182218
#копируем my_table.sql.zst с сервера A на сервер B
22192219

22202220
#на сервере B:
2221-
pv my_table.sql.zst | zstd -dcq | psql --username=postgres --host127.0.0.1 --dbname=my_database_dst --set=ON_ERROR_STOP=1 --echo-errors
2221+
pv my_table.sql.zst | zstd -dcq | psql --username=postgres --host=127.0.0.1 --dbname=my_database_dst --set=ON_ERROR_STOP=1 --echo-errors
22222222
```
22232223

22242224
### Как проверить синтаксис SQL кода без его выполнения?

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /