My Googlefu is failing me. Are there any code snippets, either in Python or FORTRAN, that shows how to create binary files to be used by the COPY command in PostgreSQL?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
|
Your best bet really is to create CSV files and then import them with COPY. If you want to, you can then wrap them simply in a COPY ... WITH CSV FROM STDIN statement. The existing docs on the COPY command should be sufficient. See http://www.postgresql.org/docs/9.1/static/sql-copy.html |
|||
|
|