APPEND optimizer hint v16
By default, EDB Postgres Advanced Server adds new data into the first available free space in a table vacated by vacuumed records. Include the APPEND
directive after an INSERT
or SELECT
command to bypass midtable free space and affix new rows to the end of the table. This optimizer hint can be particularly useful when bulk loading data.
The syntax is:
For example, the following command, compatible with Oracle databases, instructs the server to append the data in the INSERT
statement to the end of the sales
table:
EDB Postgres Advanced Server supports the APPEND
hint when adding multiple rows in a single INSERT
statement:
You can also include the APPEND
hint in the SELECT
clause of an INSERT INTO
statement: