code to read csv file and store in postgres database code example
Example: postgresql import data from csv
copy table from '/home/usama/Documents/columns_rearrange.csv' csv header ;
copy table from '/home/usama/Documents/columns_rearrange.csv' csv header ;