From: | "Gilberto Castillo" <gilberto(dot)castillo(at)etecsa(dot)cu> |
---|---|
To: | "Ruben avila galindo" <ruben2218(at)gmail(dot)com> |
Cc: | "Ayuda" <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Vistas Materializadas |
Date: | 2013-12-11 21:44:13 |
Message-ID: | 38376.192.168.207.54.1386798253.squirrel@webmail.etecsa.cu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
> Buenas Tardes:
>
> Queria saber si ya en la version 9.3 ya tiene automaticos la realizacion
> de
> vistas materializadas.
Si,
Te dejo un ejemplo
CREATE TABLE aa (a int);
INSERT INTO aa VALUES (1),(2);
CREATE MATERIALIZED view m_aa AS SELECT * FROM aa;
SELECT * FROM m_aa;
a
---
1
2
INSERT INTO aa values (3);
SELECT * FROM m_aa;
a
---
1
2
REFRESH MATERIALIZED VIEW m_aa;
SELECT * FROM m_aa;
a
---
1
2
3
Saludos,
Gilberto Castillo
La Habana, Cuba
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 179 bytes |
unknown_filename | text/plain | 157 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Ruben avila galindo | 2013-12-11 22:01:28 | Re: Vistas Materializadas |
Previous Message | Ruben avila galindo | 2013-12-11 21:39:58 | Vistas Materializadas |