I have a dump file which is:
COPY public.applications (id, reference_id, lead_id) FROM stdin;
This is followed by the rows that need to be added.
Instead of copy, I want to insert these rows from stdin because copy is replacing my entire table (removing existing data in the table). I just want to add rows, not remove any existing ones.
I tried:
insert into public.applications (id, reference_id, lead_id) values FROM stdin;
But this is incorrect syntax. Whats the correct way to do this? Is there a way to tweak the copy command to only add rows and not replace the table?
copydoes not removed existing rows