Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: DBD::Pg pg_putcopydata

by erix (Parson)
on Jul 01, 2010 at 11:02 UTC ( #847491=note: print w/replies, xml ) Need Help??


in reply to DBD:Pg pg_putcopydata

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'"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847491]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2017-10-20 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?