Adam Sah <[EMAIL PROTECTED]> writes: > well, that's fine I suppose -- but then why does it work the other way > for DROP TABLE?
It doesn't work the other way for DROP. The error you get in the DROP case is a low-level error that really should never be seen by users. But I see that as a problem with DROP, not with RENAME. In my view, once the code has determined which relation (identified by OID) is meant, it should be OK to take the OID as identifying the relation henceforth. This is not significantly different from the fact that create table a (...); create view v as select * from a; alter table a rename to b; will leave view v referencing b. Would you claim that v should break? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org