Keep in mind that you can also directly pipe data to postgres' COPY via psql:
# for instance, a program producing tab-delimited output: perl my_tsv.pl | psql -d dbname -c "copy mytable from stdin csv delimi +ter E'\t'"
# or if the data is in a tsv file already: < data.tsv psql -d dbname -c "copy mytable from stdin csv delimiter E' +\t'"
In reply to Re: DBD::Pg pg_putcopydata
by erix
in thread DBD:Pg pg_putcopydata
by LiquidT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |