Skip to content

nostr_filter

Nostr event types, insertion helpers, and JSON filter evaluation inside PostgreSQL.

nostr_filter · Nostr event types, insertion helpers, and JSON filter evaluation inside PostgreSQL.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101893nostr_filternostr_filter1.0FEATC

Usage

Sources:

nostr_filter Nostr event types, insertion helpers, and JSON filter evaluation inside PostgreSQL.

Enablement

Install the files for the intended server, then create nostr_filter in the target database:

CREATE EXTENSION nostr_filter;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT test_insert_nostr_event();
SELECT test_retrieve_nostr_event();
SELECT test_nostr_event_type();

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
insert_nostr_eventFUNCTIONCallable function from the reviewed install surface.
insert_nostr_event_typeFUNCTIONCallable function from the reviewed install surface.
nostr_filter_searchFUNCTIONCallable function from the reviewed install surface.
nostr_eventTYPEUser-facing data type created by the extension.
nostr_eventsTABLEExtension-owned table; account for its data in backup and upgrades.
nostr_eventsTABLEExtension-owned table; account for its data in backup and upgrades.
insert_nostr_eventFUNCTIONCallable function from the reviewed install surface.
insert_nostr_event_typeFUNCTIONCallable function from the reviewed install surface.
nostr_eventTYPEUser-facing data type created by the extension.
nostr_filter_searchFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader