| From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
|---|---|
| To: | Nico Williams <nico(at)cryptonector(dot)com>, Kevin Grittner <kgrittn(at)gmail(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Updating MATERIALIZED VIEWs (Re: delta relations in AFTER triggers) |
| Date: | 2017-01-21 23:05:50 |
| Message-ID: | 2016db76-02ba-7cc3-ae4e-47e25f967663@BlueTreble.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 1/20/17 5:38 PM, Nico Williams wrote:
> If these triggers could be automatically generated, that sure would be
> nice, but some control would be needed over when to update the MV vs.
> mark it as needing a refresh.
FWIW, pg_classy[1], which is still a work in progress, would allow for
that. The idea is that you define a code template which you can then
call with arguments (such as the name of a matview table), and those
arguments get put into the template before executing the resulting SQL.
Most of the basic framework for that is in place; I just need to finish
code that will allow for the extension to track arbitrary database
objects that were created.
1: https://github.com/decibel/pg_classy/blob/master/doc/pg_classy.asc
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephen Frost | 2017-01-21 23:57:08 | Re: Checksums by default? |
| Previous Message | Stephen Frost | 2017-01-21 22:35:10 | Re: Checksums by default? |