Waiting for 8.4 – sql-wrappable RETURNING

In PostgreSQL 8.2, we got “RETURNING” clause in INSERT/UPDATE/DELETE queries. Unfortunately it could not be used as source of rows for anything in sql. INSERT INTO table_backup DELETE FROM TABLE WHERE … returning *; Well, it’s still not possible, but it is a one step closer, thanks to patch written and committed by Tom Lane … Continue reading “Waiting for 8.4 – sql-wrappable RETURNING”

Waiting for 8.4 – new FSM (Free Space Map)

On 30th of September, Heikki Linnakangas committed his patch that changes FSM: Rewrite the FSM. Instead of relying on a fixed-size shared memory segment, the free space information is stored in a dedicated FSM relation fork, with each relation (except for hash indexes; they don’t use FSM).   This eliminates the max_fsm_relations and max_fsm_pages GUC … Continue reading “Waiting for 8.4 – new FSM (Free Space Map)”

Waiting for 8.4 – partial-match support in GIN, and sequence restart

Today we have two interesting patches: patch by Teodor Sigaev and Oleg Bartunov, and committed by Tom Lane, which adds interesting capability to GIN indexes patch by Zoltan Boszormenyi, also committed by Tom, which adds “RESTART” option to ALTER SEQUENCE. With some interesting consequences