From cabc0e7dfe079ff0c8005036a0c0d59617b19e8b Mon Sep 17 00:00:00 2001 From: Guillem Borrell Date: Mon, 23 Jan 2023 14:03:52 +0000 Subject: [PATCH] HEADER option ignores the header. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3497b03..3a624a0 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ If you're fine with dr's choices you can then create the table and insert the fi ``` $ head wine.csv | dr schema -i -p -n wine | psql -$ tail -n +2 wine.csv | psql -c "\copy wine from stdin with (FORMAT 'csv')" +$ cat wine.csv | psql -c "\copy wine from stdin with (FORMAT 'csv', HEADER)" ``` Since most databases can ingest and spit CSV files, some simple operations can be enhanced with dr, like storing the results of a query in a parquet file