Re: [SQL] Inheritance and DELETE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Enrico(dot)Scholz(at)informatik(dot)tu-chemnitz(dot)de
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Inheritance and DELETE
Date: 1999-08-27 14:26:08
Message-ID: 6709.935763968@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Enrico(dot)Scholz(at)informatik(dot)tu-chemnitz(dot)de writes:
> CREATE RULE chg_fsO_on_dir_delete AS ON DELETE
> TO directory
> DO DELETE FROM fsObject* WHERE parent = OLD.fsOid;

> But PostgreSQL is complaining with the message
> 'ERROR: parser: parse error at or near "*"'

Hmm. It looks like the grammar is set up to require a simple
relation_name, rather than a relation_expr which would accept *,
in DELETE statements. I think this is a bug --- I know no reason
that DELETE wouldn't work as an inherited operation. Looks like
the fix will take more than a one-line change, though.

UPDATE doesn't look like it wants to deal with multiple targets
either...

regards, tom lane

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-08-27 14:53:39 Re: [SQL] optimizer not using an index...
Previous Message Bruce Momjian 1999-08-27 14:22:29 Re: [SQL] Don't need transaction integrity - can I turn it off