-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[views] Error when inserting new records in junction tables. #297
Comments
Hi @toluaina , |
I'm afraid I don't have much documentation on views yet. Can you try with 2 tables? |
@toluaina I tried by changing a column name in book_category table from book_id to id. So I'm guessing (can't say for sure), that pgsync is expecting the primary_key list to be same across all the base tables. Since changing the book_id to id worked. |
You can add it manually with this, them make sure you re-run bootstrap
|
Hi @toluaina , |
Hi @toluaina , Thanks :) |
PGSync version: master
Postgres version: 14
Elasticsearch version: 7+
Redis version: latest
Python version: 3.7
Problem Description:
Hi,
I'm trying to sync a materialized view in postgres to ES.
Followed the comments in this issue. And was able to get the initial sync.
But when linking books to new categories, I'm getting an error (I've pasted the entire trace block below)
Here's the screenshot of schema :
Queries to create sample data :
Schema :
Error Message (if any):
I tried by adding book_id and category_id, but it gave a different error. I think my schema.json file is wrong, but don't know what can be done to fix it.
The text was updated successfully, but these errors were encountered: