Re: Indexed views like SQL Server - NOT Materialized Views

From: Nicolas Paris <niparisco(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: inspector morse <inspectormorse86(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Indexed views like SQL Server - NOT Materialized Views
Date: 2015-06-10 15:49:26
Message-ID: CA+ssMOR87m9Uv_c4NtEx7RO_aBVAQLtizXL5tHdwcFiORWOTqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2015-06-10 17:43 GMT+02:00 Kevin Grittner <kgrittn(at)ymail(dot)com>:

> inspector morse <inspectormorse86(at)gmail(dot)com> wrote:
>
> > After doing that, if you add or delete a topic from the Topics
> > Table, SQL Server automatically keeps the count updated.....and
> > it's fast because of the unique index.
> >
> > Doing the same thing in Postgresql using Materialized views is
> > slow and the developer has to manually issue a "refresh
> > materialized view" command. The alternative is to write
> > additional sql to update count columns....uneccessary work.
> >
> > Do you know when Postgresql will implement such a feature?
>
> People are working toward such capabilities. While nobody can say
> with any certainty when such features will make it into a
> PostgreSQL release, I think it's safe to predict that it will not
> be before late 2017, and most probably later than that.
>
> This capability probably will be available through materialized
> views, rather than using the SQL Server syntax.
>
> --
> Kevin Grittner
> EDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>> Hi,
>
>
>> Would views + partial indexes (based on views predicat) do the trick ?
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

​Hi,

Would views + partial indexes (based on views predicat) do the trick ?​

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2015-06-10 16:11:32 Re: Indexed views like SQL Server - NOT Materialized Views
Previous Message Kevin Grittner 2015-06-10 15:43:19 Re: Indexed views like SQL Server - NOT Materialized Views