Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PostgreSQL Inbox Compatibility Alias

pg_outbox is a compatibility alias for the remote PostgreSQL inbox sink. It does not replicate into a remote outbox and is not counted as a separate supported destination. New configurations should use sink_type = "inbox".

When to Use This Sink

Use the alias only while migrating an existing remote inbox configuration.

Configuration

SELECT tide.relay_set_outbox_v2(
  jsonb_build_object(
    'name', 'replicate-to-eu',
    'outbox', 'orders',
    'sink_type', 'pg_outbox',
    'config', '{
        "postgres_url": "${env:EU_DB_URL}",
        "inbox": "orders_eu_events",
        "batch_size": 200
    }'::jsonb
  )
);

Configuration Reference

ParameterTypeDefaultDescription
sink_typestring—Must be "pg_outbox"
postgres_urlstring—PostgreSQL URL for the remote target instance
inboxstring—Target inbox name on the remote instance
batch_sizeint100Messages per batch

Further Reading