Module postgresfixture::version
source · Expand description
Parse PostgreSQL version numbers.
assert_eq!(Ok(Version::Pre10(9, 6, 17)), "9.6.17".parse());
assert_eq!(Ok(Version::Post10(14, 6)), "14.6".parse());
See the PostgreSQL “Versioning Policy” page for information on PostgreSQL’s versioning scheme.
Enums
- Represents a PostgreSQL version with some parts missing. This is the kind of thing we might find in a cluster’s
PG_VERSION
file. - Represents a full PostgreSQL version. This is the kind of thing we see when running
pg_ctl --version
for example. - Error parsing a PostgreSQL version number.