From: Albert REINER <areiner@tph.tuwien.ac.at>
To: PostgreSQL-SQL <pgsql-sql@postgreSQL.org>
Subject: DELETE/DROP and inheritance
Date: Mon, 11 Oct 1999 13:55:48 +0200
Message-ID: <19991011135548.A194@frithjof> (raw)
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>
---------------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: areiner@tph.tuwien.ac.at
Subject: Re: DELETE/DROP and inheritance
In-Reply-To: <19991011135548.A194@frithjof>
References: <19991011135548.A194@frithjof>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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