Yaml
The pgstream configuration can be provided as a yaml configuration file, which encapsulates the transformation configuration. The following sample shows the format for all supported fields.Environment Variables
Here’s a list of all the environment variables that can be used to configure the individual modules, along with their descriptions and default values.Sources
Postgres Listener
PGSTREAM_POSTGRES_LISTENER_URL
PGSTREAM_POSTGRES_LISTENER_URL
Required: ✓ Required
Description: URL of the Postgres database to connect to for replication purposes.
PGSTREAM_POSTGRES_REPLICATION_SLOT_NAME
PGSTREAM_POSTGRES_REPLICATION_SLOT_NAME
Required: Optional
Description: Name of the Postgres replication slot name.
PGSTREAM_POSTGRES_SNAPSHOT_MODE
PGSTREAM_POSTGRES_SNAPSHOT_MODE
Required: Optional
Description: Mode in which the snapshot will be run. It can be one of
schema, data or full (both schema and data).PGSTREAM_POSTGRES_SNAPSHOT_TABLES
PGSTREAM_POSTGRES_SNAPSHOT_TABLES
Required: Optional
Description: Tables for which there will be an initial snapshot generated. The syntax supports wildcards. Tables without a schema defined will be applied the public schema. Example: for
public.test_table and all tables in the test_schema schema, the value would be the following: "test_table test_schema.\*"PGSTREAM_POSTGRES_SNAPSHOT_EXCLUDED_TABLES
PGSTREAM_POSTGRES_SNAPSHOT_EXCLUDED_TABLES
Required: Optional
Description: Tables that will be excluded in the snapshot process. The syntax does not support wildcards. Tables without a schema defined will be applied the public schema.
PGSTREAM_POSTGRES_SNAPSHOT_SCHEMA_WORKERS
PGSTREAM_POSTGRES_SNAPSHOT_SCHEMA_WORKERS
Required: Optional
Description: Number of tables per schema that will be processed in parallel by the snapshotting process.
PGSTREAM_POSTGRES_SNAPSHOT_TABLE_WORKERS
PGSTREAM_POSTGRES_SNAPSHOT_TABLE_WORKERS
Required: Optional
Description: Number of concurrent workers that will be used per table by the snapshotting process.
PGSTREAM_POSTGRES_SNAPSHOT_BATCH_BYTES
PGSTREAM_POSTGRES_SNAPSHOT_BATCH_BYTES
Required: Optional
Description: Max batch size in bytes to be read and processed by each table worker at a time. The number of pages in the select queries will be based on this value.
PGSTREAM_POSTGRES_SNAPSHOT_WORKERS
PGSTREAM_POSTGRES_SNAPSHOT_WORKERS
Required: Optional
Description: Number of schemas that will be processed in parallel by the snapshotting process.
PGSTREAM_POSTGRES_SNAPSHOT_MAX_CONNECTIONS
PGSTREAM_POSTGRES_SNAPSHOT_MAX_CONNECTIONS
Required: Optional
Description: Maximum number of Postgres connections that will be opened by the snapshotting process. This value shouldn’t be lower than the number of schema/table workers selected.
PGSTREAM_POSTGRES_SNAPSHOT_USE_SCHEMALOG
PGSTREAM_POSTGRES_SNAPSHOT_USE_SCHEMALOG
Required: Optional
Description: Forces the use of the
pgstream.schema_log for the schema snapshot instead of using pg_dump/pg_restore for Postgres targets.PGSTREAM_POSTGRES_SNAPSHOT_CLEAN_TARGET_DB
PGSTREAM_POSTGRES_SNAPSHOT_CLEAN_TARGET_DB
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, option to issue commands to DROP all the objects that will be restored.PGSTREAM_POSTGRES_SNAPSHOT_INCLUDE_GLOBAL_DB_OBJECTS
PGSTREAM_POSTGRES_SNAPSHOT_INCLUDE_GLOBAL_DB_OBJECTS
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, option to snapshot all global database objects outside of the selected schema (such as extensions, triggers, etc).PGSTREAM_POSTGRES_SNAPSHOT_CREATE_TARGET_DB
PGSTREAM_POSTGRES_SNAPSHOT_CREATE_TARGET_DB
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, option to create the database being restored.PGSTREAM_POSTGRES_SNAPSHOT_NO_OWNER
PGSTREAM_POSTGRES_SNAPSHOT_NO_OWNER
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, do not output commands to set ownership of objects to match the original database.PGSTREAM_POSTGRES_SNAPSHOT_NO_PRIVILEGES
PGSTREAM_POSTGRES_SNAPSHOT_NO_PRIVILEGES
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, do not output privilege related commands (grant/revoke).PGSTREAM_POSTGRES_SNAPSHOT_EXCLUDED_SECURITY_LABELS
PGSTREAM_POSTGRES_SNAPSHOT_EXCLUDED_SECURITY_LABELS
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, list of providers whose security labels will be excluded.PGSTREAM_POSTGRES_SNAPSHOT_ROLE
PGSTREAM_POSTGRES_SNAPSHOT_ROLE
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, role name to be used to create the dump.PGSTREAM_POSTGRES_SNAPSHOT_ROLES_SNAPSHOT_MODE
PGSTREAM_POSTGRES_SNAPSHOT_ROLES_SNAPSHOT_MODE
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, controls how roles are snapshotted. Possible values: “enabled” (snapshot all roles including passwords), “disabled” (do not snapshot roles), “no_passwords” (snapshot roles but exclude passwords).PGSTREAM_POSTGRES_SNAPSHOT_SCHEMA_DUMP_FILE
PGSTREAM_POSTGRES_SNAPSHOT_SCHEMA_DUMP_FILE
Required: Optional
Description: When using
pg_dump/pg_restore to snapshot schema for Postgres targets, file where the contents of the schema pg_dump command and output will be written for debugging purposes.PGSTREAM_POSTGRES_SNAPSHOT_STORE_URL
PGSTREAM_POSTGRES_SNAPSHOT_STORE_URL
Required: Optional
Description: Postgres URL for the database where the snapshot requests and their status will be tracked. A table
snapshot_requests will be created under a pgstream schema.PGSTREAM_POSTGRES_SNAPSHOT_STORE_REPEATABLE
PGSTREAM_POSTGRES_SNAPSHOT_STORE_REPEATABLE
Required: Optional
Description: Allow to repeat snapshots requests that have been already completed succesfully. If using the run command, initial snapshots won’t be repeatable by default. If the snapshot command is used instead, the snapshot will be repeatable by default.
PGSTREAM_POSTGRES_SNAPSHOT_DISABLE_PROGRESS_TRACKING
PGSTREAM_POSTGRES_SNAPSHOT_DISABLE_PROGRESS_TRACKING
Required: Optional
Description: Whether to disable progress tracking for the snapshot.
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_INITIAL_INTERVAL
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_INITIAL_INTERVAL
Required: Optional
Description: Initial interval for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_MAX_INTERVAL
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_MAX_INTERVAL
Required: Optional
Description: Max interval for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_MAX_RETRIES
PGSTREAM_POSTGRES_LISTENER_EXP_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_LISTENER_BACKOFF_INTERVAL
PGSTREAM_POSTGRES_LISTENER_BACKOFF_INTERVAL
Required: Optional
Description: Constant interval for the backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_LISTENER_BACKOFF_MAX_RETRIES
PGSTREAM_POSTGRES_LISTENER_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_LISTENER_DISABLE_RETRIES
PGSTREAM_POSTGRES_LISTENER_DISABLE_RETRIES
Required: Optional
Description: Disable any retry policy.
Kafka Listener
PGSTREAM_KAFKA_READER_SERVERS
PGSTREAM_KAFKA_READER_SERVERS
Required: ✓ Required
Description: URLs for the Kafka servers to connect to.
PGSTREAM_KAFKA_TOPIC_NAME
PGSTREAM_KAFKA_TOPIC_NAME
Required: ✓ Required
Description: Name of the Kafka topic to read from.
PGSTREAM_KAFKA_READER_CONSUMER_GROUP_ID
PGSTREAM_KAFKA_READER_CONSUMER_GROUP_ID
Required: ✓ Required
Description: Name of the Kafka consumer group for the WAL Kafka reader.
PGSTREAM_KAFKA_READER_CONSUMER_GROUP_START_OFFSET
PGSTREAM_KAFKA_READER_CONSUMER_GROUP_START_OFFSET
Required: Optional
Description: Kafka offset from which the consumer will start if there’s no offset available for the consumer group.
PGSTREAM_KAFKA_TLS_ENABLED
PGSTREAM_KAFKA_TLS_ENABLED
Required: Optional
Description: Enable TLS connection to the Kafka servers.
PGSTREAM_KAFKA_TLS_CA_CERT_FILE
PGSTREAM_KAFKA_TLS_CA_CERT_FILE
Required: Optional
Description: Path to the CA PEM certificate to use for Kafka TLS authentication.
PGSTREAM_KAFKA_TLS_CLIENT_CERT_FILE
PGSTREAM_KAFKA_TLS_CLIENT_CERT_FILE
Required: Optional
Description: Path to the client PEM certificate to use for Kafka TLS client authentication.
PGSTREAM_KAFKA_TLS_CLIENT_KEY_FILE
PGSTREAM_KAFKA_TLS_CLIENT_KEY_FILE
Required: Optional
Description: Path to the client PEM private key to use for Kafka TLS client authentication.
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_INITIAL_INTERVAL
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_INITIAL_INTERVAL
Required: Optional
Description: Initial interval for the exponential backoff policy to be applied to the Kafka commit retries.
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_MAX_INTERVAL
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_MAX_INTERVAL
Required: Optional
Description: Max interval for the exponential backoff policy to be applied to the Kafka commit retries.
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_MAX_RETRIES
PGSTREAM_KAFKA_COMMIT_EXP_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the exponential backoff policy to be applied to the Kafka commit retries.
PGSTREAM_KAFKA_COMMIT_BACKOFF_INTERVAL
PGSTREAM_KAFKA_COMMIT_BACKOFF_INTERVAL
Required: Optional
Description: Constant interval for the backoff policy to be applied to the Kafka commit retries.
PGSTREAM_KAFKA_COMMIT_BACKOFF_MAX_RETRIES
PGSTREAM_KAFKA_COMMIT_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the backoff policy to be applied to the Kafka commit retries.
PGSTREAM_KAFKA_COMMIT_DISABLE_RETRIES
PGSTREAM_KAFKA_COMMIT_DISABLE_RETRIES
Required: Optional
Description: Disable any retry policy.
Targets
Kafka Batch Writer
PGSTREAM_KAFKA_WRITER_SERVERS
PGSTREAM_KAFKA_WRITER_SERVERS
Required: ✓ Required
Description: URLs for the Kafka servers to connect to.
PGSTREAM_KAFKA_TOPIC_NAME
PGSTREAM_KAFKA_TOPIC_NAME
Required: ✓ Required
Description: Name of the Kafka topic to write to.
PGSTREAM_KAFKA_TOPIC_PARTITIONS
PGSTREAM_KAFKA_TOPIC_PARTITIONS
Required: Optional
Description: Number of partitions created for the Kafka topic if auto create is enabled.
PGSTREAM_KAFKA_TOPIC_REPLICATION_FACTOR
PGSTREAM_KAFKA_TOPIC_REPLICATION_FACTOR
Required: Optional
Description: Replication factor used when creating the Kafka topic if auto create is enabled.
PGSTREAM_KAFKA_TOPIC_AUTO_CREATE
PGSTREAM_KAFKA_TOPIC_AUTO_CREATE
Required: Optional
Description: Auto creation of configured Kafka topic if it doesn’t exist.
PGSTREAM_KAFKA_TLS_ENABLED
PGSTREAM_KAFKA_TLS_ENABLED
Required: Optional
Description: Enable TLS connection to the Kafka servers.
PGSTREAM_KAFKA_TLS_CA_CERT_FILE
PGSTREAM_KAFKA_TLS_CA_CERT_FILE
Required: Optional
Description: Path to the CA PEM certificate to use for Kafka TLS authentication.
PGSTREAM_KAFKA_TLS_CLIENT_CERT_FILE
PGSTREAM_KAFKA_TLS_CLIENT_CERT_FILE
Required: Optional
Description: Path to the client PEM certificate to use for Kafka TLS client authentication.
PGSTREAM_KAFKA_TLS_CLIENT_KEY_FILE
PGSTREAM_KAFKA_TLS_CLIENT_KEY_FILE
Required: Optional
Description: Path to the client PEM private key to use for Kafka TLS client authentication.
PGSTREAM_KAFKA_WRITER_BATCH_TIMEOUT
PGSTREAM_KAFKA_WRITER_BATCH_TIMEOUT
Required: Optional
Description: Max time interval at which the batch sending to Kafka is triggered.
PGSTREAM_KAFKA_WRITER_BATCH_BYTES
PGSTREAM_KAFKA_WRITER_BATCH_BYTES
Required: Optional
Description: Max size in bytes for a given batch. When this size is reached, the batch is sent to Kafka.
PGSTREAM_KAFKA_WRITER_BATCH_SIZE
PGSTREAM_KAFKA_WRITER_BATCH_SIZE
Required: Optional
Description: Max number of messages to be sent per batch. When this size is reached, the batch is sent to Kafka.
PGSTREAM_KAFKA_WRITER_BATCH_IGNORE_SEND_ERRORS
PGSTREAM_KAFKA_WRITER_BATCH_IGNORE_SEND_ERRORS
Required: Optional
Description: Whether to ignore errors encountered while sending batches to the target.
PGSTREAM_KAFKA_WRITER_MAX_QUEUE_BYTES
PGSTREAM_KAFKA_WRITER_MAX_QUEUE_BYTES
Required: Optional
Description: Max memory used by the Kafka batch writer for inflight batches.
Search Batch Indexer
PGSTREAM_OPENSEARCH_STORE_URL
PGSTREAM_OPENSEARCH_STORE_URL
Required: ✓ Required
Description: URL for the opensearch store to connect to (at least one of the URLs must be provided).
PGSTREAM_ELASTICSEARCH_STORE_URL
PGSTREAM_ELASTICSEARCH_STORE_URL
Required: ✓ Required
Description: URL for the elasticsearch store to connect to (at least one of the URLs must be provided).
PGSTREAM_SEARCH_INDEXER_BATCH_TIMEOUT
PGSTREAM_SEARCH_INDEXER_BATCH_TIMEOUT
Required: Optional
Description: Max time interval at which the batch sending to the search store is triggered.
PGSTREAM_SEARCH_INDEXER_BATCH_SIZE
PGSTREAM_SEARCH_INDEXER_BATCH_SIZE
Required: Optional
Description: Max number of messages to be sent per batch. When this size is reached, the batch is sent to the search store.
PGSTREAM_SEARCH_INDEXER_BATCH_IGNORE_SEND_ERRORS
PGSTREAM_SEARCH_INDEXER_BATCH_IGNORE_SEND_ERRORS
Required: Optional
Description: Whether to ignore errors encountered while sending batches to the target.
PGSTREAM_SEARCH_INDEXER_MAX_QUEUE_BYTES
PGSTREAM_SEARCH_INDEXER_MAX_QUEUE_BYTES
Required: Optional
Description: Max memory used by the search batch indexer for inflight batches.
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_INITIAL_INTERVAL
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_INITIAL_INTERVAL
Required: Optional
Description: Initial interval for the exponential backoff policy to be applied to the search store operation retries.
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_MAX_INTERVAL
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_MAX_INTERVAL
Required: Optional
Description: Max interval for the exponential backoff policy to be applied to the search store operation retries.
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_MAX_RETRIES
PGSTREAM_SEARCH_STORE_EXP_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the exponential backoff policy to be applied to the search store operation retries.
PGSTREAM_SEARCH_STORE_BACKOFF_INTERVAL
PGSTREAM_SEARCH_STORE_BACKOFF_INTERVAL
Required: Optional
Description: Constant interval for the backoff policy to be applied to the search store operation retries.
PGSTREAM_SEARCH_STORE_BACKOFF_MAX_RETRIES
PGSTREAM_SEARCH_STORE_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the backoff policy to be applied to the search store operation retries.
PGSTREAM_SEARCH_STORE_DISABLE_RETRIES
PGSTREAM_SEARCH_STORE_DISABLE_RETRIES
Required: Optional
Description: Disable any retry policy.
Webhook Notifier
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_URL
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_URL
Required: ✓ Required
Description: URL for the webhook subscription store to connect to.
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_CACHE_ENABLED
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_CACHE_ENABLED
Required: Optional
Description: Caching applied to the subscription store retrieval queries.
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_CACHE_REFRESH_INTERVAL
PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_CACHE_REFRESH_INTERVAL
Required: Optional
Description: Interval at which the subscription store cache will be refreshed. Indicates max cache staleness.
PGSTREAM_WEBHOOK_NOTIFIER_MAX_QUEUE_BYTES
PGSTREAM_WEBHOOK_NOTIFIER_MAX_QUEUE_BYTES
Required: Optional
Description: Max memory used by the webhook notifier for inflight notifications.
PGSTREAM_WEBHOOK_NOTIFIER_WORKER_COUNT
PGSTREAM_WEBHOOK_NOTIFIER_WORKER_COUNT
Required: Optional
Description: Max number of concurrent workers that will send webhook notifications for a given WAL event.
PGSTREAM_WEBHOOK_NOTIFIER_CLIENT_TIMEOUT
PGSTREAM_WEBHOOK_NOTIFIER_CLIENT_TIMEOUT
Required: Optional
Description: Max time the notifier will wait for a response from a webhook URL before timing out.
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_ADDRESS
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_ADDRESS
Required: Optional
Description: Address for the subscription server to listen on.
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_READ_TIMEOUT
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_READ_TIMEOUT
Required: Optional
Description: Max duration for reading an entire server request, including the body before timing out.
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_WRITE_TIMEOUT
PGSTREAM_WEBHOOK_SUBSCRIPTION_SERVER_WRITE_TIMEOUT
Required: Optional
Description: Max duration before timing out writes of the response. It is reset whenever a new request’s header is read.
Postgres Batch Writer
PGSTREAM_POSTGRES_WRITER_TARGET_URL
PGSTREAM_POSTGRES_WRITER_TARGET_URL
Required: ✓ Required
Description: URL for the PostgreSQL store to connect to
PGSTREAM_POSTGRES_WRITER_BATCH_TIMEOUT
PGSTREAM_POSTGRES_WRITER_BATCH_TIMEOUT
Required: Optional
Description: Max time interval at which the batch sending to PostgreSQL is triggered.
PGSTREAM_POSTGRES_WRITER_BATCH_SIZE
PGSTREAM_POSTGRES_WRITER_BATCH_SIZE
Required: Optional
Description: Max number of messages to be sent per batch. When this size is reached, the batch is sent to PostgreSQL.
PGSTREAM_POSTGRES_WRITER_MAX_QUEUE_BYTES
PGSTREAM_POSTGRES_WRITER_MAX_QUEUE_BYTES
Required: Optional
Description: Max memory used by the postgres batch writer for inflight batches.
PGSTREAM_POSTGRES_WRITER_BATCH_BYTES
PGSTREAM_POSTGRES_WRITER_BATCH_BYTES
Required: Optional
Description: Max size in bytes for a given batch. When this size is reached, the batch is sent to PostgreSQL.
PGSTREAM_POSTGRES_WRITER_BATCH_IGNORE_SEND_ERRORS
PGSTREAM_POSTGRES_WRITER_BATCH_IGNORE_SEND_ERRORS
Required: Optional
Description: Whether to ignore errors encountered while sending events to the target.
PGSTREAM_POSTGRES_WRITER_SCHEMALOG_STORE_URL
PGSTREAM_POSTGRES_WRITER_SCHEMALOG_STORE_URL
Required: Optional
Description: URL of the store where the pgstream schemalog table which keeps track of schema changes is.
PGSTREAM_POSTGRES_WRITER_DISABLE_TRIGGERS
PGSTREAM_POSTGRES_WRITER_DISABLE_TRIGGERS
Required: Optional
Description: Option to disable triggers on the target PostgreSQL database while performing the snaphot/replication streaming. It defaults to false when using the run command, and to true when using the snapshot command.
PGSTREAM_POSTGRES_WRITER_ON_CONFLICT_ACTION
PGSTREAM_POSTGRES_WRITER_ON_CONFLICT_ACTION
Required: Optional
Description: Action to apply to inserts on conflict. Options are
nothing, update or error.PGSTREAM_POSTGRES_WRITER_BULK_INGEST_ENABLED
PGSTREAM_POSTGRES_WRITER_BULK_INGEST_ENABLED
Required: Optional
Description: Wether to use COPY FROM on insert only workloads. It defaults to false when using the run command, and to true when using the snapshot command.
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_INITIAL_INTERVAL
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_INITIAL_INTERVAL
Required: Optional
Description: Initial interval for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_MAX_INTERVAL
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_MAX_INTERVAL
Required: Optional
Description: Max interval for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_MAX_RETRIES
PGSTREAM_POSTGRES_WRITER_EXP_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the exponential backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_WRITER_BACKOFF_INTERVAL
PGSTREAM_POSTGRES_WRITER_BACKOFF_INTERVAL
Required: Optional
Description: Constant interval for the backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_WRITER_BACKOFF_MAX_RETRIES
PGSTREAM_POSTGRES_WRITER_BACKOFF_MAX_RETRIES
Required: Optional
Description: Max retries for the backoff policy to be applied to the Postgres connection retries.
PGSTREAM_POSTGRES_WRITER_DISABLE_RETRIES
PGSTREAM_POSTGRES_WRITER_DISABLE_RETRIES
Required: Optional
Description: Disable any retry policy.
Modifiers
Injector
PGSTREAM_INJECTOR_STORE_POSTGRES_URL
PGSTREAM_INJECTOR_STORE_POSTGRES_URL
Required: ✓ Required
Description: URL for the postgres URL where the schema log table is stored.
Transformer
PGSTREAM_TRANSFORMER_RULES_FILE
PGSTREAM_TRANSFORMER_RULES_FILE
Required: Optional
Description: Filepath pointing to the yaml file containing the transformer rules.
Filter
PGSTREAM_FILTER_INCLUDE_TABLES
PGSTREAM_FILTER_INCLUDE_TABLES
Required: Optional
Description: List of schema qualified tables for which the WAL events should be processed. If no schema is provided,
public schema will be assumed. Wildcards are supported.PGSTREAM_FILTER_EXCLUDE_TABLES
PGSTREAM_FILTER_EXCLUDE_TABLES
Required: Optional
Description: List of schema qualified tables for which the WAL events should be skipped. If no schema is provided,
public schema will be assumed. Wildcards are supported.Instrumentation
Metrics
PGSTREAM_METRICS_ENDPOINT
PGSTREAM_METRICS_ENDPOINT
Required: Optional
Description: Endpoint where the pgstream metrics will be exported to.
PGSTREAM_METRICS_COLLECTION_INTERVAL
PGSTREAM_METRICS_COLLECTION_INTERVAL
Required: Optional
Description: Interval at which the pgstream metrics will be collected and exported.
Traces
PGSTREAM_TRACES_ENDPOINT
PGSTREAM_TRACES_ENDPOINT
Required: Optional
Description: Endpoint where the pgstream traces will be exported to.
PGSTREAM_TRACES_SAMPLE_RATIO
PGSTREAM_TRACES_SAMPLE_RATIO
Required: Optional
Description: Ratio for the trace sampling. Value must be between 0.0 and 1.0, where 0.0 is no traces sampled, and 1.0 is all traces sampled.