Re:PostgreSQL 10 Released
by kuschku on Thursday October 05, 2017 @12:59PM
(#15410688)
> That still executes two queries under the hood.
For now, there are optimizations planned for the query planner that would optimize this to a single query in the next releases.
Some commercial databases already do that.
INSERT RETURNING only returns the value of the changed rows, but it does not return anything if you redirect writes with triggers or child tables, including partitioning
For now, there are optimizations planned for the query planner that would optimize this to a single query in the next releases.
Some commercial databases already do that.
INSERT RETURNING only returns the value of the changed rows, but it does not return anything if you redirect writes with triggers or child tables, including partitioning