Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions integration/mirror/passthrough/pgdog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[general]
mirror_exposure = 1.0
openmetrics_port = 9091
passthrough_auth = "enabled_plain"
query_parser = "on"

[rewrite]
enabled = false
shard_key = "ignore"
split_inserts = "error"

[[databases]]
name = "pgdog"
host = "127.0.0.1"

[[databases]]
name = "pgdog_mirror"
host = "127.0.0.1"
database_name = "pgdog1"

[[mirroring]]
source_db = "pgdog"
destination_db = "pgdog_mirror"

[admin]
password = "pgdog"
4 changes: 4 additions & 0 deletions integration/mirror/passthrough/users.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# No users are configured up front. When a client connects to "pgdog",
# passthrough auth adds the source-side record AND propagates the same
# credentials to the mirror destination "pgdog_mirror" so the mirror
# pool can authenticate. See pgdog/src/backend/databases.rs::add.
Loading
Loading