Coder Social home page Coder Social logo

pgxman - PostgreSQL Extension Manager

GitHub release

pgxman is npm for Postgres extensions. pgxman simplifies the discovery and use of extensions so modern hackers can easily enhance the capabilities of their applications.

Instead of managing extension versions, build & run dependencies, operating system, platform architecture, pgxman automatically detects and streamlines extension operations (xOps) based on the local development environment.

With pgxman, we've streamlined the installation process to one simple step: run pgxman install [extension name].

pgxman integrates with the system package manager, ensuring the correct versions are installed without extra packages from any shared dependencies between extensions. pgxman’s automated build system creates APT packages for each Postgres version, platform, and OS supported by the extension. Extensions are built from a buildkit formula, written in YAML, and are contributed through GitHub.

More Documentation

Try pgxman help, man pgxman, or read our documentation.

Installation

Run:

# with homebrew
brew install pgxman/tap/pgxman
# without homebrew
curl -sfL https://install.pgx.sh | sh -

For more options, see our installation documentation.

Quickstart

search

Find extensions with pgxman search:

pgxman search fdw

install

To install an extension, say pgvector, run:

pgxman install pgvector

pgxman will automatically detect your local install of Postgres (or, on MacOS, will use a container).

You can specify multiple extensions, specific extension versions, and a PG version:

pgxman install --pg 15 pgvector=0.5.1 pg_ivm=1.7.0

You can also utilize a pack file to install multiple extensions at once:

pgxman pack install # installs from pgxman.yaml from current directory
pgxman pack install -f /path/to/pgxman.yaml

Once installed, restart Postgres, then use CREATE EXTENSION.

init, build

Please refer to our docs for how to build an extension for pgxman.

How it works

pgxman's build system works with your system package manager. The buildkit specifies how to build each extension and builds it for each package manager. When a buildkit is added or updated, a build is conducted and the packages are stored in pgxman's repositories.

When installing an extension, pgxman's package repository is used to install the packages into your system. This way, pgxman is able to handle dependency management, installation, and uninstallation through your system's package manager.

pgxman itself is either installed as an apt package or via homebrew.

For more details, see how it works in the documentation.

License

The pgxman client is licensed under the FSL, which, in short, means pgxman is open for all internal, non-competing usage. To learn more about the FSL, please see fsl.software. As stated:

You can do anything with FSL software except undermine its producer. You can read it, learn from it, run it internally, modify it, and propose improvements back to the producer. After two years it becomes Open Source software under Apache 2.0 or MIT.

We consider any Postgres service provider using pgxman as part of their service to be a Competing Usage. However, we encourage widespread adoption of pgxman and welcome any service provider to contact us at pgxman [at] hydra [dot] so to obtain a license for usage as part of your service. Our main concern is assuring the pgxman service can scale to the needs of your service.

pgxman's Projects

clickbench icon clickbench

ClickBench: a Benchmark For Analytical Databases

flyctl icon flyctl

Command line tools for fly.io services

pgxman icon pgxman

Developer-friendly package manager and registry for PostgreSQL extensions

v86 icon v86

x86 PC emulator and x86-to-wasm JIT, running in the browser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.