Plan nodes · Set operations and appends

Append

Returns the rows of each child, one child after another.

Used for UNION ALL and for reading the partitions of a partitioned table. Partitions that cannot match can be pruned, at planning time or as the query runs.

Example

SELECT name FROM artists UNION ALL SELECT title FROM albums

3 nodes

Run with EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF) on the sample database, PostgreSQL 19.0. Open it in the EXPLAIN visualizer →

Related

Merge Append · Recursive Union · SetOp