Configures database INSERT triggers that offload document chunking and embedding to Edge Functions.
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Risky
Do not use without reviewing
pg_net.http_post(). Synchronous HTTP calls inside triggers block the transaction and cause timeouts.pg_net extension MUST be enabled before creating the trigger function. HALT if it is not available.AFTER INSERT to guarantee the row is committed before the Edge Function attempts to read it.pg_net.http_post() for all HTTP callouts from the database to Edge Functions.status to 'processing' when the trigger fires and update to 'embedded' or 'failed' in the Edge Function.id in every Edge Function payload to enable idempotent retries.