Using wilcard in postgres #339
Answered
by
flarco
datvt-vitox
asked this question in
Q&A
-
Currently I'm using this replica config to move all table from schema postgres_air in database postgres_air to schema air_pg in database postgres source: postgresql://admin:[email protected]:5432/postgres_air?sslmode=disable
target: postgresql://admin:[email protected]:5432/postgres?sslmode=disable
defaults:
object: '{air_pg}.{postgres_air}_{stream_table}'
mode: full-refresh
streams:
postgres_air.*: But the error appear
When I change stream to streams:
postgres_air.account:
object: air_pg.account It work perfectly. I don't know it's my mistake when using wilcard notation or this is a bug. |
Beta Was this translation helpful? Give feedback.
Answered by
flarco
Jul 23, 2024
Replies: 1 comment 2 replies
-
Interesting, I think it's due to you specifying the URI in the file. See this code block. Instead of: source: postgresql://admin:[email protected]:5432/postgres_air?sslmode=disable
target: postgresql://admin:[email protected]:5432/postgres?sslmode=disable Try: source: PG1
target: PG2 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
datvt-vitox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting, I think it's due to you specifying the URI in the file. See this code block.
Can you try using connection names?
Instead of:
Try: