← Browse the extensions catalog

http

Source README ↗

HTTP requests from PostgreSQL

http adds HTTP client functions to PostgreSQL so SQL can call HTTP services through libcurl. See the upstream project for the extension documentation.

This image supports PostgreSQL 18 on Debian Bookworm and Trixie. The selected PGDG package versions are maintained independently per suite in metadata.hcl.

Follow the quick start to set up extension-update email alerts first, then use the CronJob to install and refresh the catalog. These examples inherit image references and runtime settings from the catalog. The Cluster YAML is an excerpt: replace imageCatalogRef: ... with your catalog reference and keep your existing instance and storage settings.

Usage

1. Add the http extension image to your Cluster

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: cluster-http
spec:
  imageCatalogRef: ...
  postgresql:
    extensions:
    - name: http

2. Enable the extension in a database

Once the extension's files are available in the cluster, you can install it in a database in either of two ways:

Platform teams may make extension containers available across their clusters without installing every extension in every database. Install only the extensions a database uses; letting users enable them through SQL alongside the rest of their DDL schema management code can be a convenient approach.

For extensions that normally require superuser privileges, platform teams can use pgextwlist to allow non-superusers to install an administrator-approved selection of extensions.

3. Verify installation

Connect to the database with psql and run \dx to check the installed extensions.

The PGDG package links to libcurl. The build stages the resolved non-core shared libraries and matching Debian copyright notices under /system and /licenses; no HTTP client daemon is included.

SQL example

SELECT status, content FROM http_get('https://example.org/');

Licenses and updates

The extension is licensed under MIT. Its copyright notice and notices for bundled runtime packages are included under /licenses/<package>/. The image includes no source archives. Renovate tracks the suite-specific PGDG package; rebuild against the supported Debian suite to refresh the package and linked runtime files, then review dependency and notice changes.