Skip to content

pgwebhook

A very powerful extension to use webhooks and interact with Supabase Edge Functions

pgwebhook · A very powerful extension to use webhooks and interact with Supabase Edge Functions

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101705pgwebhookpgwebhook0.1.2FEATApache-2.0SQL
Relationships
Requireshttp

Usage

Sources:

pgwebhook — pgwebhook is a PostgreSQL extension designed to facilitate the creation and management of webhooks directly from your database. Use it when an application needs this specific database capability. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION pgwebhook;

SELECT dbdev.install('mansueli@pgwebhook');
CREATE EXTENSION "mansueli@pgwebhook" VERSION '0.1.1';

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • hook.edge_wrapper is an extension function.
  • hook.edgehook_trigger() is an extension function and returns trigger.
  • hook.http_request is an extension function.
  • hook.webhook_trigger() is an extension function and returns trigger.
  • hook.migrations is a table installed or managed by the extension.
  • hook is a schema created by the extension.

Requirements and Caveats

  • The reviewed control file declares default version 0.1.2.
  • Install the confirmed extension dependencies first: http.
  • The control file marks the extension as non-relocatable.
  • The control file does not require superuser-only installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader