I'm trying to insert couple of million rows into a PostgreSQL database. I am wondering what is the best way to do it.
- CREATE TABLE AS
- INSERT INTO
I'm looking to see which one is better and why? I have read through some blogs but still couldn't come to a conclusion.
I think INSERT INTO is a bulk insert operation. Please correct me if I'm wrong. Whether CREATE TABLE AS SELECT is a bulk insert operation?
Please advise.