From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Enrico(dot)Scholz(at)informatik(dot)tu-chemnitz(dot)de, pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] Inheritance and DELETE |
Date: | 1999-09-27 19:44:48 |
Message-ID: | 199909271944.PAA12964@candle.pha.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...
Added to TODO list:
* Allow DELETE and UPDATE to use inheritance using tablename*
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1999-09-27 22:45:35 | Re: [SQL] table aliasing problem with 6.5... |
Previous Message | Bruce Momjian | 1999-09-27 18:55:13 | Re: [SQL] UNIQUE constraint |