Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: DBD::Pg pg_putcopydata

by erix (Vicar)
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 | 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'"

Comment on Re: DBD::Pg pg_putcopydata
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847491]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-11-28 02:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls