Trying to do this query:
BEGIN; CREATE TEMP TABLE tmporient ON COMMIT DROP AS SELECT * FROM orient_parameters WITH NO DATA; COPY tmporient FROM 'D:/downloads/BOKZ1.txt' DELIMITER ' '; SELECT * FROM tmporient LIMIT 1; SELECT tmporient.DateTime FROM tmporient; INSERT INTO orient_parameters SELECT DISTINCT ON (tmporient.KA_num,tmporient.DateTime,tmporient.Time_pr)* FROM tmporient; COMMIT; A query on all columns is performed:
And when you try to select a separate error is issued:
What could be the problem?