ALTER TABLE tbl OWNER TO somethingbut
ALTER TABLE tbl SET SCHEMA somethingin PostgreSQL.
Maybe a committee faced with this inconsistency would arrive at the compromise
ALTER TABLE tbl [SET] {OWNER|SCHEMA} [TO] something?
on software development, open source, databases, and geek stuff
ALTER TABLE tbl OWNER TO somethingbut
ALTER TABLE tbl SET SCHEMA somethingin PostgreSQL.
Maybe a committee faced with this inconsistency would arrive at the compromise
ALTER TABLE tbl [SET] {OWNER|SCHEMA} [TO] something?
Peter Eisentraut's Blog by Peter Eisentraut is licensed under a Creative Commons Attribution 3.0 Unported License.
Interesting. Did the ANSI committee require those syntaxes, or did the PG community make this inconsistency?
ReplyDeleteThat was us.
Deletegood idea. I have another one: Grants on Tables and Views is puzzling. If i set grant on a table with the same name as the view the table and the view both gets the new privileges. So there is no difference for postgres to differ between view grants and table grants. better would be: grant select on view xyz TO ...; and grant select on table xyz...
ReplyDelete