Bug with updateable Views and inherited tables?

From: Sebastian Böck <sebastianboeck(at)freenet(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Bug with updateable Views and inherited tables?
Date: 2004-10-01 12:37:38
Message-ID: 415D4F92.9030401@freenet.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all,

i have a view defined as a simple select of a table.
This table is inherited by a couple of others.
All entries belong to the child-tables.

I also have an unconditional update rule on the view.
If i do an update to the view, the update is rewritten
to update the father-table.

And now a strange thing is happening:
If i do an update, this update is done correctly only
on the first defined child-table. If it applies to
one of the other 8 child-tables nothing happens at all.

If i update the father-table directly everything is
working like expected (the update is "directed" to the
right table).

Is this a known limitation with views, rules and
inherited tables i haven't heard of? Or is it a bug?

My Postgres is version 7.4.5.

Thanks in advance

Sebastian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Henriksen, Jonas F 2004-10-01 13:05:14 How to debug pl/pgSQL -script?
Previous Message Richard Huxton 2004-10-01 10:45:18 Re: newby question