pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedDELETE/DROP and inheritance
2+ messages / 2 participants
[nested] [flat]
* DELETE/DROP and inheritance
@ 1999-10-11 11:55 Albert REINER <areiner@tph.tuwien.ac.at>
0 siblings, 1 reply; 2+ messages in thread
From: Albert REINER @ 1999-10-11 11:55 UTC (permalink / raw)
To: pgsql-sql
Why don't DELETE and DROP work with the *-notation for inherited
tables? I think they should, and I don't see why it should be
difficult to implement (but I cannot, not being C-literate).
albert=> create database tst;
CREATEDB
albert=> \c tst
connecting to new database: tst
tst=> create table a (id int4);
CREATE
tst=> create table b (id2 int4) inherits (a);
CREATE
tst=> delete from a*;
ERROR: parser: parse error at or near "*"
(here I would like to get "DELETE 0" instead)
tst=> drop table a*;
ERROR: parser: parse error at or near "a"
(here I would like to get "DROP" instead)
Bye,
Albert.
--
---------------------------------------------------------------------------
Post an / Mail to / Skribu al: Albert Reiner <areiner@tph.tuwien.ac.at>
---------------------------------------------------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] DELETE/DROP and inheritance
@ 1999-10-11 19:17 Bruce Momjian <maillist@candle.pha.pa.us>
parent: Albert REINER <areiner@tph.tuwien.ac.at>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 1999-10-11 19:17 UTC (permalink / raw)
To: Albert REINER <areiner@tph.tuwien.ac.at>; +Cc: pgsql-sql
> Why don't DELETE and DROP work with the *-notation for inherited
> tables? I think they should, and I don't see why it should be
> difficult to implement (but I cannot, not being C-literate).
We have a number of "inheritance" items on our TODO list. They just
haven't been high priority for anyone.
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-10-11 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-10-11 11:55 DELETE/DROP and inheritance Albert REINER <areiner@tph.tuwien.ac.at>
1999-10-11 19:17 ` Bruce Momjian <maillist@candle.pha.pa.us>
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