Re: Extended capabilities for managing MATERIALIZED VIEWs

From: "Robert Koch" <gms_xy(at)gmx(dot)de>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: Extended capabilities for managing MATERIALIZED VIEWs
Date: 2014-07-02 08:07:26
Message-ID: trinity-e2caa76c-6fe5-4ae5-a4ed-399b3a41acd6-1404288446687@3capp-gmx-bs07
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Two more ideas regarding mat. views:</div>

<div>&nbsp;</div>

<div>
<div>Capability to count and show estimated/counted number of rows of a MATERIALIZED VIEW (likewise to physical tables).</div>
</div>

<div>Furthermore it would be useful to be able to &quot;convert&quot; a VIEW from materialized into not-materialized and vice versa. This could bo done in editing properties -&gt; materialization checkbox. It&#39;s clear, that a MATERIALIZED VIEW is very different from a regular VIEW, so converting means DROP and CREATE.</div>

<div>&nbsp;</div>

<div>&nbsp;
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Dienstag, 01. Juli 2014 um 10:32 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Robert Koch&quot; &lt;gms_xy(at)gmx(dot)de&gt;<br/>
<b>An:</b>&nbsp;pgadmin-support(at)postgresql(dot)org<br/>
<b>Betreff:</b>&nbsp;[pgadmin-support] Extended capabilities for managing MATERIALIZED VIEWs</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>

<div>&nbsp;</div>

<div>I would like to ask for some more capabilities regarding MATIERIALIZED VIEWs:</div>

<div>&nbsp;</div>

<div>-&gt; In pgAdmin&#39;s tree view I would like to see an option to REFRESH MATERIALIZED VIEW (not only refresh the tree view).</div>

<div>&nbsp;</div>

<div>-&gt; It would be useful to have an category &quot;Indexes&quot; (likewise to physical tables) to manage indexing.</div>

<div>&nbsp;</div>

<div>Furthermore there seems to be a problem with updating MATERIALIZED VIEWs in pgAdmin:</div>

<div>&nbsp;</div>

<div>I created a materialized view (regardless, if it&#39;s done with -&gt; right-click -&gt; new view, or with plain SQL):</div>

<div>&nbsp;</div>

<div>CREATE MATERIALIZED VIEW olap.test<br/>
AS SELECT NULL::int as a</div>

<div>&nbsp;</div>

<div>When I try to update the VIEWs definition in pgAdmin, an error is shown in pgAdmin. PostgreSQL log says:</div>

<div>&nbsp;</div>

<div>
<div>2014-07-01 10:17:55 CEST FEHLER:&nbsp; Syntaxfehler bei &bdquo;)&ldquo; bei Zeichen 76<br/>
2014-07-01 10:17:55 CEST ANWEISUNG:&nbsp; DROP MATERIALIZED VIEW olap.test;CREATE MATERIALIZED VIEW olap.test<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WITH (<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT NULL::integer AS a, NULL::varchar as b<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WITH DATA;</div>
</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>Running pgAdmin 1.18.1 under Windows 8.1</div>

<div>&nbsp;</div>

<div>Thank you</div>

<div>&nbsp;</div>

<div>Robert</div>

<div>&nbsp;</div>
</div>
</div>
</div>
</div>
</div></div></body></html>

Attachment Content-Type Size
unknown_filename text/html 2.9 KB

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Barter 2014-07-02 08:12:26 External Editor Support
Previous Message Robert Koch 2014-07-01 08:32:47 Extended capabilities for managing MATERIALIZED VIEWs