-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Is there a way to sync Postgresql Views with Elasticsearch? #275
Comments
Got the same issue, but believe it is not possible at this moment, it is not part of the supported features. I believe that if you can tweak the code a little you could make it use a view as the source table for the query, but it would only trigger on changes of 1 of the tables. Adding a parameter for monitor table, which will have the the trigger logic, and the view could be in the source table could be a solution. Also wish to thank @toluaina for the great work you have put into this. |
Yes I'm afraid views are not supported yet. I hope to do this whan I have a bit of time |
I've added support for views in the master branch. For views, you need to include:
|
closed as resolved. thanks for your patience on this |
I looked into the implementation. Look like Any idea how we can table this ? |
@toluaina You mentioned views are supported now but it is still looking for the xmin column in the views |
I am still having issue too |
PGSync version: 2.2.1
Postgres version: 13.6
Elasticsearch version: 8.1.0
Redis version: 5.0.7
Python version: 3.8.3
Problem Description:
I have created an index in Elasticsearch for Postgresql Views. Whenever I do changes in the Postgres View table, the same changes have to happen in the Elasticsearch index. I tried running the command pgsync with schema.json and got the below error.
Is there a way to sync Postgresql Views with Elasticsearch? Because this is my requirement.
Error Message (if any):
The text was updated successfully, but these errors were encountered: