PostgreSQL 9.5 includes several new features to improve performance and functionality for developers: UPSERT allows inserting or updating a row based on unique constraints. BRIN indexes provide very small indexes ideal for large naturally ordered tables. GROUPING SETS, CUBE and ROLLUP allow multiple groupings in a single query. Row-level security policies control access at the row level. SKIP LOCKED ignores locked rows. TABLESAMPLE selects random rows. IMPORT FOREIGN SCHEMA simplifies importing schemas from other databases. Foreign tables can now participate in inheritance. JSONB documents can be modified and merged. Sorting performance is improved with abbreviated keys. Parallel vacuuming allows vacuum operations to use multiple processes.