Re: Strange inconsistency using psql - Mailing list pgsql-admin

From Tom Lane
Subject Re: Strange inconsistency using psql
Date
Msg-id 13321.1576695708@sss.pgh.pa.us
Whole thread Raw
In response to Re: Strange inconsistency using psql  (John Scalia <jayknowsunix@gmail.com>)
List pgsql-admin
John Scalia <jayknowsunix@gmail.com> writes:
> Correct, but my question really is, why is VIEW different from all the other types of objects?

It's not really -- GRANT considers all kinds of privilege-grantable
relations to be "tables", with the exception of sequences which are
different because they have a different set of applicable privileges.

If we treated views specially here then we'd also have to treat
materialized views and foreign tables as distinct things-to-grant-on,
which seems like mostly clutter.

The history of ALTER TABLE is an analogy, which I guess you could
read as support for either side.  Originally PG just had ALTER TABLE
and it worked on all relation kinds (for which the ALTER was sensible).
We've since grown ALTER VIEW etc, but I don't think their coverage of
the ALTER TABLE options is quite complete --- and anyway we still let
you say ALTER TABLE, for backwards-compatibility reasons.

            regards, tom lane



pgsql-admin by date:

Previous
From: Pepe TD Vo
Date:
Subject: backup script error with could not connect to database
Next
From: Wells Oliver
Date:
Subject: Query planning around one key of a multi-column index