Re: Nonrecursive ALTER TABLE ADD/RENAME COLUMN is wrong

From: Rod Taylor <rbt(at)zort(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Nonrecursive ALTER TABLE ADD/RENAME COLUMN is wrong
Date: 2002-06-25 02:16:21
Message-ID: 20020625021621.GN74892@localhost.bloor.phub.net.cable.rogers.co
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> * Give an error, same as if "ONLY foo" had been written.
>
> * Assume the user really wants recursion, and do it anyway.
>
> The second seems more user-friendly but also seems to violate the
> principle of least surprise. Anyone have an opinion about what to do?

I really prefer the former. If for some reason it were to become
available that they could alter only foo for some strange reason we
haven't come up with yet (statistics related perhaps?), we would
certainly need to throw an error on the other 'alter table' statements
at that point in time.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2002-06-25 02:19:06 Re: Nonrecursive ALTER TABLE ADD/RENAME COLUMN is wrong
Previous Message Tom Lane 2002-06-25 00:55:24 Re: SQL99, CREATE CAST, and initdb