How can I write a stored procedure that imports data from a CSV file and populates the table?
I created a small tool that imports csv
file into PostgreSQL super easy, just a command and it will create and populate the tables, unfortunately, at the moment all fields automatically created uses the type TEXT
csv2pg users.csv -d ";" -H 192.168.99.100 -U postgres -B mydatabase
The tool can be found on https://github.com/eduardonunesp/csv2pg