This destination plugin lets you sync data from a CloudQuery source to a PostgreSQL compatible database.
This example configures a Postgresql destination, located at localhost:5432:
kind: destination
spec:
name: "postgresql"
registry: "github"
path: "cloudquery/postgresql"
version: "v6.1.3"
spec:
connection_string: "postgresql://postgres:pass@localhost:5432/postgres?sslmode=disable"
# can be also specified in DSN format which can hold special characters in password
# connection_string: "user=postgres password=pass+0-[word host=localhost port=5432 dbname=postgres"
# Optional parameters:
# pgx_log_level: error
# batch_size: 10000 # 10K entries
# batch_size_bytes: 100000000 # 100 MB
# batch_timeout: 60s
The (top level) spec section is described in the
Destination Spec Reference.
The PostgreSQL destination utilizes batching, and supports
batch_size and
batch_size_bytes.
This is the (nested) spec used by the PostgreSQL destination Plugin.
The PostgreSQL destination can be run in debug mode.
Note: This will use
pgx built-in logging and might output data/sensitive information to logs so make sure to not use it in production but only for debugging.
kind: destination
spec:
name: postgresql
path: cloudquery/postgresql
version: "v6.1.3"
spec:
connection_string: ${PG_CONNECTION_STRING}
pgx_log_level: debug # Available: error, warn, info, debug, trace. Default: "error"