I've got a foreign table from a distant csv host on a external webserver.
I need to enhance this table so I create a materialized view to add some extra fields and join with internal data. Making a view not working, I've got a error (probably due to performance issue of distant http server)
I can't use some bash cron script on the Linux host as IT department not wanted so I need to stay in PostgreSQL capabilities it self.
I've try this method but it seems I can't add a trigger on a foreign table.
Any way to refresh materialized view ? (each time distant csv is updated but could be also based on a frequency, for example each 24h)
EDIT to be more efficient : How to refresh a materialized view from a foreign table ?
-
A table with data from remote source. Using the pg extension file_fdw see postgresql.org/docs/13/file-fdw.htmlBad Wolf– Bad Wolf2021年12月08日 08:22:34 +00:00Commented Dec 8, 2021 at 8:22
1 Answer 1
As trigger cannot be set on Foreign Table, I've find an other way by using Pg_Cron extension
Explore related questions
See similar questions with these tags.