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 aaf1c96

Browse files
author
Rinat Mukhtarov
committed
select.csv.xz
1 parent c1107fd commit aaf1c96

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,11 +2364,16 @@ copy (
23642364
from my_table
23652365
where send_date > now() - interval '2 month'
23662366
--limit 100
2367-
) to stdout csv;
2367+
) to stdout (format csv, header false);
23682368
```
23692369

23702370
```bash
2371-
cat select.sql | psql -U postgres --dbname=my_database | zstd -19 -T8 > select.csv.zst
2371+
cat select.sql | psql -U postgres --dbname=my_database | zstd -19 -T8 -o select.csv.zst
2372+
```
2373+
2374+
или (лучше сжимает, но значительно медленнее работает)
2375+
```bash
2376+
cat select.sql | psql -U postgres --dbname=my_database | xz -zc9 --threads=8 select.csv > select.csv.xz
23722377
```
23732378

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

0 commit comments

Comments
(0)

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