Waiting for 9.1 – format()

On 21st of November Robert Haas committed new patch, which adds new function: Add new SQL function, format(text). Currently, three conversion format specifiers are supported: %s for a string, %L for an SQL literal, and %I for an SQL identifier. The latter two are deliberately designed not to overlap with what sprintf() already supports, in … Continue reading “Waiting for 9.1 – format()”

Waiting for 9.1 – Removed autocast footgun

On 8th of November, Tom Lane committed patch, which doesn’t provide any new features, but removes one of the more annoying footguns in PostgreSQL: Prevent invoking I/O conversion casts via functional/attribute notation.   PG 8.4 added a built-in feature for casting pretty much any data type to string types (text, varchar, etc). We allowed this … Continue reading “Waiting for 9.1 – Removed autocast footgun”

Waiting for 9.1 – adding values to enums

Finally, on 25th of October, Tom Lane committed patch which does: Allow new values to be added to an existing enum type.   After much expenditure of effort, we’ve got this to the point where the performance penalty is pretty minimal in typical cases.   Andrew Dunstan, reviewed by Brendan Jurd, Dean Rasheed, and Tom … Continue reading “Waiting for 9.1 – adding values to enums”

Waiting for 9.1 – triggers on views

On 10th of October, Tom Lane committed patch by Deal Rasheed, which adds triggers on views: Support triggers ON views.   This patch adds the SQL-standard concept OF an INSTEAD OF TRIGGER, which IS fired instead OF performing a physical INSERT/UPDATE/DELETE. The TRIGGER FUNCTION IS passed the entire OLD AND/OR NEW ROWS OF the VIEW, … Continue reading “Waiting for 9.1 – triggers on views”

Waiting for 9.1 – Recognize functional dependency on primary keys.

Yesterday (August, 7th), Tom Lane committed: Log Message: ———– Recognize functional dependency on primary keys. This allows a table’s other columns to be referenced without listing them in GROUP BY, so long as the primary key column(s) are listed in GROUP BY.   Eventually we should also allow functional dependency on a UNIQUE constraint when … Continue reading “Waiting for 9.1 – Recognize functional dependency on primary keys.”