Repository navigation
2.0.0-beta.2
Pre-release
Pre-release
This is the second beta of pglifecycle 2.0. It closes many of the known-limitation issues from beta.1: pull now models more of what pg_dump writes, and deploy gives an empty plan for more hand-written forms. The limits that remain are on the known limitations page.
Added
pull,buildanddeploysupport security labels. Each object that can have a label, event triggers and view columns included, gets asecurity_labelsmap ({provider: label}) next to itscomment. Before,pullfailed on aSECURITY LABELentry (#206, #220, #225).- Views keep their triggers (for example
INSTEAD OF). Before,pulllost a trigger on a view with only a warning (#224). pull,buildanddeploykeep comments on view and materialized view columns, composite type attributes, domain constraints, foreign data wrappers and servers. Before, these comments went toremaining.yaml(#218, #221, #222, #223).- A
NOT VALIDdomainCHECK(#204). project.yamlkeeps theconnection_limitandis_templateof the database (#210).- A table-level
column_settingslist keeps the statistics target and storage of a column that an inheritance child inherits (#216).
Changed
deployadds and removes partitions in place. Before, a new partition rebuilt the parent, and with--allow-dropthe data of the parent was lost (#212).deploychanges a primary key or unique constraint in place. Before, the change rebuilt the whole table (#214).- Against a live database,
deployasks the server to deparse a view query that is still different after formatting, so a query without explicit casts no longer changes on each deploy (#226). - Validation enforces the required fields of six schemata (for example the
locationof a tablespace), and refuses text search mapping keys that differ only in case (#203). pullanddeployshow the warnings of a successfulpg_dump.PGDATABASEis left to libpq, so a connection string in it is no longer expanded (#205).
Fixed
deploygives an empty plan on a second run for hand-written forms: dollar-quoted casts, view, materialized view and SQL function bodies in another layout, the name of a columnCHECK, the detailed form of key columns, a new unnamed domainCHECK, and mixed partition forms (#208, #209, #212, #217).buildno longer writes;;after a view or materialized view query that ends with;(#208, #217).deployputs more statements after a new function that they call, so the script no longer fails on apply (#207).deploychanges anintegercolumn toserialwhen the column owns no sequence. Before, it wroteALTER COLUMN ... TYPE serial, which PostgreSQL refuses (#214).- An attached partition gets the
NOT NULLof its parent, soATTACH PARTITIONno longer fails (#212). - A change of a parent
NOT NULLtoNO INHERITconverges in one deploy (#213). deploymatches and drops thePUBLICuser mapping correctly (#202).- Two operator class cases: a create over an implied family with members, and an added member in the slot of a dropped family member (#211).
deploywarns about a subscription that only the database has when the reading role cannot see subscriptions (#205).