When inserting rows via INSERT INTO tbl VALUES (...), (...), ...;
, what is the maximum number of values I can use?
To clarify, PostgreSQL supports using VALUES
to insert multiple rows at once. My question isn't how many columns I can insert, but rather how many rows of columns I can insert into a single VALUES
clause. The table in question has only ~10 columns.
Can I insert 100K+ rows at a time using this format?
I am assembling my statements using SQLAlchemy Core / psycopg2
if that matters.