how to load flat files to postgres and EDb
COPY for postgres and EDB*Loader for EDB
how to copy data from table to file
with the COPY TO command
copy table_name (column_name) to ‘/tmp/location_file.csv’ with CSV HEADER; HEADER will include column names at the top.
how to copy data file table to table
with COPY FROM command:
copy table_name (column_name) from ‘/tmp/location_file.csv’ with CSV HEADER; HEADER will include column names at the top.