<div dir="auto">By far the easiest way is through a foreign data wrapper.  Here are step by step directions:<div dir="auto"><a href="https://github.com/pramsey/pgsql-ogr-fdw">https://github.com/pramsey/pgsql-ogr-fdw</a><br></div><div dir="auto">I have used this to directly connect to an Excel table, no importing required.  If you add data to the excel  table and don't change the structure,  postgresql picks up the changes.</div><div dir="auto">If you need to use gis data, put lat/long data in separate columns.  Then use a view to create a point from the two columns.</div><div dir="auto">To give you an example, I download earthquake data from the USGS every 5 minutes in CSV format and link to a PostgreSQL database via the above method.  Queries then compute the distance to selected locations and notify me if any one of the locations might be effected.  All automatic.</div><div dir="auto">The method above handles every format that ogr can handle.</div></div>