pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David M. Richter <d.richter@dkfz-heidelberg.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David M. Richter <d.richter@dkfz-heidelberg.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: View consistency
Date: Thu, 01 Nov 2001 17:08:00 +0100
Message-ID: <3BE17360.42511BD1@dkfz.de> (raw)
References: <3BE15A2F.B0CDF610@dkfz.de>
	<21914.1004629690@sss.pgh.pa.us>

Hi,

Thanks, but what I am concerning  is the performance.
In my database are some tables bigger than 6 Millions of rows. If one
row has been changed in the normal table, 
so the rule will be invoked and the view will be kept in consistance.
But this will take some time, isn't it?
I cannot simulate that case with my database, because Im still
developing.
So i have to know:

Where is the rule or the macro stored? How could I disable it?

Perhaps I could do a reinit of the view not after any Select, but after
any transaction.
But I dont know that rule or macro!

How can I get some information about the rule (wich was automatically
generated by creating the view)?
Thanks for Your hints

DAvid

---------------------------------------------------------------
"David M. Richter" <d.richter@dkfz.de> writes:
> How does postgres keep the views consistent to the according tables( if
> the original table has been changed)?

It doesn't have to; views are not materialized in Postgres.  A view
is just a rewrite rule, or macro.

                        regards, tom lane

Attachments:

d.richter.vcf (text/x-vcard, 497B) download begin:vcard url;quoted-printable:http://mbi.DKFZ-Heidelberg.de/=0D=0A n:M. Richter;David x-mozilla-html:FALSE org:Deutsches Krebsforschungszentrum/German Cancer Research Center;Division Medizinische und Biologische Informatik version:2.1 email;internet:d.richter@dkfz-heidelberg.de adr;quoted-printable:;;Im Neuenheimer Feld 280 url: http://mbi.DKFZ-Heidelberg.de/=0D=0AD-69120 Heidelberg, Germany ;Heidelberg;Germany;; x-mozilla-cpt:;-17024 fn:David M. Richter end:vcard

view thread (6+ messages)  latest in thread

Message-ID: <3BE17360.42511BD1@dkfz.de>
Permalink:  ../3BE17360.42511BD1@dkfz.de/
Also on:    postgresql.org/message-id/3BE17360.42511BD1@dkfz.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: d.richter@dkfz-heidelberg.de, tgl@sss.pgh.pa.us
  Subject: Re: View consistency
  In-Reply-To: <3BE17360.42511BD1@dkfz.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox