5

Is there any possibility of having built-in materialized views in PostgreSQL ?

I don't want Gardner version or somehthing like physical table populated by triggers. I've read that was/is something being deploy...

  • 2
    It's being developed now,may be will come trun in PostgreSQL 9.3. postgresql.org/docs/devel/static/… – francs Mar 6 '13 at 9:13
  • There is possibility to delivery a beta version? – Luigi Saggese Mar 6 '13 at 9:32
  • of course when the beta's start hitting... or you could just build from source... – xenoterracide Mar 6 '13 at 11:00
6

A basic version of materialized view are being delivered in 9.3, see depesz's article. However, it's a very limited version as you have to call REFRESH MATERIALIZED VIEW to get the database to update the view. This will hopefully improve to become automatic in later versions soon.

  • 1
    It has been improved in 9.4, so you can REFRSH the view concurrently now, if it has any UNIQUE index. See depesz's article: depesz.com/2013/07/22/… – alfonx May 19 '15 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.