postgresql_16:7.1.150.4 Notes
PostgreSQL 16 > Reference > SQL Commands > INSERT > Notes
If the specified table is a partitioned table, each row is routed to the appropriate partition and inserted into it. If the specified table is a partition, an error will occur if one of the input rows violates the partition constraint.
You may also wish to consider using MERGE, since that allows mixing INSERT, UPDATE, and DELETE within a single statement. See (see postgresql_16:7.1.154).