简体   繁体   中英

How to create materialized view log in postgreSQL?I got syntax error near on in the given query

I tried code given below:

create materialized view log on payment
with primary key
including new values;

Syntax error near on in this code.

There is no materialized view log in PostgreSQL.

To translate it into Oracle terms, PostgreSQL only has materialized views that are REFRESH COMPLETE ON DEMAND , so you don't need a materialized view log.

You will have to write something more complicated with triggers to translate the unspecified Oracle materialized view to PostgreSQL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM