I have a table with serial
id constraint:
id serial NOT NULL,
CONSTRAINT pricing_cache_pkey PRIMARY KEY (id)
Now I want to use the postgres
COPY command to batch insert csv data into the table.
COPY tablename FROM STDIN WITH CSV;
Problem: the csv file if course does not have an ID column. How can I batch insert the rows and automatically increment the IDs in the database?