pgruntime

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The -r2 suffix is a rebuild of the same upstream versions: the bundled
	// libraries had no rpath of their own, so a host without a matching system
	// libicu could not start the runtime. The suffix also renames the local
	// cache directory, so an existing install stops using the broken extraction
	// rather than silently keeping it — `stellad upgrade` fetches the
	// replacement, and any other install path needs `postgres download`.
	RuntimeVersion     = "pg18.4-pgvector0.8.2-pgsearch0.24.1-r2"
	DefaultRuntimeRepo = "CherryHQ/stella-pg-runtime"
)

Variables

This section is empty.

Functions

func CurrentRuntimeDir added in v0.62.0

func CurrentRuntimeDir() string

CurrentRuntimeDir names the directory holding the runtime this binary uses. Every installed version gets its own sibling, so the name doubles as the identity an operator sees when deciding what is safe to remove.

func DefaultRuntimeSource

func DefaultRuntimeSource() (string, bool)

func ExtractTarZstdFile

func ExtractTarZstdFile(archivePath, dest string) error

func MissingRuntimeHint

func MissingRuntimeHint() string

MissingRuntimeHint explains why automatic PostgreSQL runtime selection failed.

func RuntimeAssetName

func RuntimeAssetName(version, goos, goarch, source string) string

func RuntimeAssetURL

func RuntimeAssetURL(repo, version, goos, goarch, source string) string

func RuntimeChecksumURL

func RuntimeChecksumURL(repo, version, goos, goarch, source string) string

func RuntimeRoot

func RuntimeRoot(stellaHome, source string) string

Types

type InstalledRuntime added in v0.62.0

type InstalledRuntime struct {
	// Name is the directory name, which encodes version, OS, and architecture.
	Name string
	Path string
	// Bytes is the extracted size, best effort: entries that cannot be read are
	// skipped rather than failing a report whose only purpose is disk space.
	Bytes int64
	// Current marks the runtime this binary would use. Removing it is not
	// pruning, it is uninstalling, so callers keep the two apart.
	Current bool
}

InstalledRuntime is one extracted runtime version found on disk.

func InstalledRuntimes added in v0.62.0

func InstalledRuntimes(stellaHome string) ([]InstalledRuntime, error)

InstalledRuntimes lists the runtime versions extracted under $STELLA_HOME, sorted by name. A missing pg-runtime directory is not an error: it just means nothing has been downloaded yet.

Jump to

Keyboard shortcuts

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