From: | "Gilberto Castillo" <gilberto(dot)castillo(at)etecsa(dot)cu> |
---|---|
To: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Particionado |
Date: | 2013-04-18 18:59:41 |
Message-ID: | 39286.192.168.143.54.1366311581.squirrel@webmail.etecsa.cu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Colegas,
Alguien me puede responde si puedo implementar una regla con varios select
en una tabla particionada?
Ejemplos:
CREATE VIEW view_produccion_total AS
SELECT * FROM produccion_odin
UNION ALL SELECT * FROM produccion_delta01
UNION ALL SELECT * FROM produccion_delta01plus
UNION ALL SELECT * FROM produccion_delta02;
CREATE RULE produccion_total_r
AS ON select
TO view_produccion_total
DO INSTEAD
(SELECT * FROM produccion_delta01 WHERE anno = valor_an AND mes =
valor_ms
SELECT * FROM produccion_delta02 WHERE anno = valor_an1 AND mes =
valor_ms2
....
);
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 | Jaime Casanova | 2013-04-18 23:16:30 | Re: Particionado |
Previous Message | Gilberto Castillo | 2013-04-18 16:39:18 | Re: control de actividad por usuario/Aplicacion |