Skip to main content

render-lab-tasks-render-postgres

Nine tasks: postgres.query, execute, upsert, transaction, migrate, setupVectorStore, upsertVectors, searchVectors, and deleteVectors. Import render_lab_tasks_render_postgres.tasks for explicit registration. Each operation exports an injectable async *_impl(ctx, input, *, deps=...).

Environment, read at first use:

Variable Meaning
DATABASE_URL PostgreSQL URL, required; linked Render Postgres private URL is supported
DATABASE_SSL true/require verifies TLS certificates, no-verify encrypts without verification; unset uses URL/driver options

The async psycopg driver uses native $1 positional placeholders. Each invocation closes its connection. Transactions roll back on exceptions and cancellation; there are no driver retries. Durable tasks retry three times with 1s exponential backoff. Arbitrary SQL writes can repeat after an ambiguous commit failure.

Generated upserts validate and quote identifiers, an intentional tightening from TypeScript's trusted-identifier interpolation. Schema-qualified table names are not accepted by generated operations; use explicit SQL in query/execute instead. Vector operations preserve the canonical id/content/metadata/embedding schema, finite-vector validation, bounded search limits, and guarded delete selectors.

Migration SQL and ledger inserts run in one transaction. Concurrent callers can race on the ledger read; PostgreSQL rolls back the losing transaction. Migration names must be unique. DDL requiring autocommit (such as CREATE INDEX CONCURRENTLY) does not belong in a migration transaction.

Results are JSON values: decimal/UUID values become strings, dates/times ISO strings, and binary values become Node-compatible Buffer-shaped JSON. Unknown custom driver objects and non-finite floats fail instead of escaping the task. These mappings intentionally define Python serialization where raw node-postgres objects were ambiguous. Live Postgres/pgvector/TLS checks remain in the backlog.

Installation

pip install render-lab-tasks-render-postgres==0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_lab_tasks_render_postgres-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file render_lab_tasks_render_postgres-0.1.0.tar.gz.

File metadata

File hashes

Hashes for render_lab_tasks_render_postgres-0.1.0.tar.gz
Algorithm Hash digest
SHA256 173284dafa587a5cc93e31a3bbdfdd3ab9c97f7ec9b53d2e72a0618e44e97b66
MD5 8951fe4b288db83bb12f0ea5a1665c04
BLAKE2b-256 590ebe04a9443f8b6a3eaa0413b36cc9e6afffd5ac53ca037e36a1f3f19501e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_render_postgres-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file render_lab_tasks_render_postgres-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_render_postgres-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24203263f5b48f5d4338142d94006ed449bd6f3234c683121b58010e29b3e3dc
MD5 0f6e7c961bf80407a85efbd35821a1e4
BLAKE2b-256 b7086b40d3a947ac788aa31665f870281d6d933a4a94dd271ebc4f1150ac1c38

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_render_postgres-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page