profile

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func ForServerVersionNum(versionNum int) (Profile, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL