Documentation
¶
Overview ¶
Package profile defines PostgreSQL-major version profiles and effective capability calculation. It has no dependency on PostgreSQL runtime state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeCapabilities ¶
func MergeCapabilities(sources ...CapabilitySet) []analysis.CapabilityStatus
MergeCapabilities intersects the constraints supplied by the version profile, build, runtime probe, and configuration. An omitted capability does not constrain other sources. Output and combined reasons are stable.
Types ¶
type CapabilitySet ¶
type CapabilitySet map[analysis.CapabilityID]analysis.CapabilityStatus
CapabilitySet is one source of PostgreSQL capability constraints.
func (CapabilitySet) Clone ¶
func (set CapabilitySet) Clone() CapabilitySet
Clone returns a map that can be changed without mutating the source.
type Profile ¶
type Profile struct {
ID string
Major int
Reference bool
// contains filtered or unexported fields
}
Profile describes one supported PostgreSQL major version.
func ForServerVersionNum ¶
ForServerVersionNum selects the PostgreSQL 16 or 17 profile.
func (Profile) Capabilities ¶
func (profile Profile) Capabilities() CapabilitySet
Capabilities returns a copy of the version-profile capability source.
func (Profile) Public ¶
func (profile Profile) Public() analysis.VersionProfile
Public returns the engine-neutral profile summary.
type UnsupportedVersionError ¶
type UnsupportedVersionError struct {
VersionNum int
}
UnsupportedVersionError records a server_version_num outside the supported PostgreSQL 16/17 ranges.
func (*UnsupportedVersionError) Error ¶
func (e *UnsupportedVersionError) Error() string
Error implements error.