Re: Continuous inserts...

From: Joerg Hessdoerfer <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Continuous inserts...
Date: 2000-08-23 08:10:36
Message-ID: 4.3.2.7.0.20000823100827.00aff2d0@192.168.0.1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi!

At 14:16 22.08.00 -0400, you wrote:
>Jan Wieck <janwieck(at)Yahoo(dot)com> writes:
> > I haven't looked at the code, but pg_class only has a boolean
> > telling if a class has rules or not. Could it be that adding
> > more rules (or dropping just a few instead of all) doesn't
> > update the pg_class tuple, thus the syscache for the table
> > isn't invalidated and other backends continue to use the old
> > information instead of rescanning pg_rewrite?
>
>This is done correctly in current sources --- see
>setRelhasrulesInRelation(). However I recall having dorked with that
>code not long ago, and I forget what it looked like before. Perhaps
>7.0.* is broken in this respect? Would think people would have noticed,
>though.
>
> regards, tom lane

Perhaps I should have mentioned that the test was done using 6.5.3 - I didn't
come around to upgrade yet...

Oh, yes, the mentioned rule was the ONLY rule on that database.

Greetings,
Joerg
--
+------**** Science & Engineering Applications GmbH ****------+
| |
| Joerg Hessdoerfer |
| Leading SW developer Phone: +49 (0)2203-962211 |
| S.E.A GmbH Fax: -962212 |
| D-51147 Koeln Internet: joerg(dot)hessdoerfer(at)sea-gmbh(dot)com |
| http://www.sea-gmbh.com |
+---------------------------------------------------------------+

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message hlefebvre 2000-08-23 10:07:36 Using SETOF in plpgsql function
Previous Message BouSaada Nabil 2000-08-22 20:42:34 Dynamic SQL