Refresh materialized views with concurrency

前端 未结 1 817
轻奢々
轻奢々 2020-12-31 06:12

I have a PostgreSQL DB, where I use materialized views. The problem occurs when I try to refresh these materialized views.

REFRESH MATERIALIZED VIEW produc         


        
相关标签:
1条回答
  • 2020-12-31 07:00

    You will have to create a unique index on the materialized view itself.

    This would look like this:

    CREATE UNIQUE INDEX ON productsforproject (id);
    

    Replace id with a suitable unique key column or a (comma separated) combination of such columns.

    0 讨论(0)
提交回复
热议问题