description, name, address, phone, notes, latitude, longitude ) INTO postgresql:///to_open_data TARGET TABLE locations TARGET COLUMNS ( type_code, type_desc, code, description, name, address, phone, notes, location point using (format nil "(~a,~a)" longitude latitude) ) WITH truncate, disable triggers, skip header = 1, fields terminated by ',' BEFORE LOAD DO $$ DROP TABLE IF EXISTS locations; $$, $$ CREATE TABLE locations ( type_code TEXT, type_desc TEXT, code TEXT, description TEXT, name TEXT, address TEXT, phone TEXT, location POINT ); $$; https://git.io/fNaue