Known Issues
The following summarizes notable known issues, in particular those that affect sharing YAML specifications with the Pyrseas utilitites.
Coverage of Database Objects
Perseid currently supports a subset of PostgreSQL objects focused on schemas, tables, columns, and their constraints. Future releases are planned to support the other objects covered by Pyrseas. For details on what is currently supported, see the API Reference.
PostgreSQL Extensions
Perseid extracts and recognizes PostgreSQL extensions in a limited
fashion, sufficient to round-trip the plpgsql procedural language
extension:
dbtoyamlemits top-levelextensionentries, e.g.extension plpgsql, including the extension schema, version and description.yamltodbacceptsextensionobjects. An extension already installed in the target database produces no SQL. A missing extension is created withCREATE EXTENSION, and comment changes are applied withCOMMENT ON EXTENSION.Core procedural languages (such as
plpgsql) are never dropped when absent from an input specification.
Other extension capabilities are not implemented at this time.
YAML Formatting
Perseid’s YAML output differs cosmetically from Pyrseas in a few respects:
Key ordering: Perseid preserves insertion order when emitting YAML mappings, while Pyrseas sorts keys alphabetically.
Spacing/indentation: There are minor differences in sequence indentation and line formatting.
These differences do not affect the parsing of the YAML structures.
Statement Ordering
When generating SQL with yamltodb, the order of DROP statements
for tables and constraints may differ from Pyrseas. Both produce valid
SQL for the same set of objects; the differences only appear when
there are no dependency constraints that force a specific order.