Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Mixture of Materialized Views / Tables In concepts #254

Closed
jraffa opened this Issue Jul 10, 2017 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

jraffa commented Jul 10, 2017

In at least two of the concepts:

crrtdurations and ventdurations

the end result is a table, while the others produce materialized views. Just wondering if this is intended behaviour, or the result of some legacy code.

Owner

tompollard commented Jul 10, 2017

I don't think this difference is intentional, so switching to a materialized view makes sense for consistency.

Tables and materialized views are pretty similar in Postgres...the main difference is that the query used to create a materialized view is retained, so the view can be regenerated with REFRESH MATERIALIZED VIEW.

Materialized views apparently don't support "automatic generation of OIDs", which are object identifiers assigned to rows. These are turned off by default for user generated tables anyway, so this doesn't seem to matter.

Owner

alistairewj commented Jul 11, 2017

Yeah little bit of inconsistency that's best fixed! Thanks @tompollard !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment