| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Marc Munro <marc(at)bloodnok(dot)com> |
| Subject: | Re: [GENERAL] Surprising syntax error |
| Date: | 2008-08-23 19:49:44 |
| Message-ID: | 200808231949.m7NJnij25115@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
Robert Haas wrote:
> >> While we don't _need_ it, it would make our system more consistent; we
> >> have made similar changes for views in other areas.
> >
> > I'm not sure it'd make the system more consistent. Because the SQL
> > standard says you use GRANT ON TABLE for a view. we'd have to always
> > ensure that we accepted that; whereas in at least some other places
> > we are trying to be picky about TABLE/VIEW/SEQUENCE actually matching
> > the object type.
> >
> > Given the spec precedent, I'm inclined to leave it alone. It's not like
> > there aren't plenty of other SQL quirks that surprise novices.
>
> I fail to understand why it's advantageous to artificially create
> surprising behavior. There are cases where PostgreSQL now accepts
> either ALTER VIEW or ALTER TABLE where it previously accepted only the
> latter, so the situation is hardly without precedent. I find it
> exceedingly unlikely that anyone is relying on GRANT ON VIEW to NOT
> work.
Yes, I assumed we were following the recent work on ALTER TABLE/VIEW
with GRANT/REVOKE. Peter, Tom, how is GRANT/REVOKE different?
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Garry Saddington | 2008-08-23 19:51:51 | query takes a long time |
| Previous Message | Robert Haas | 2008-08-23 19:14:22 | Re: [GENERAL] Surprising syntax error |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2008-08-23 19:49:51 | Re: What in the world is happening on spoonbill? |
| Previous Message | Greg Stark | 2008-08-23 19:33:58 | Re: proposal sql: labeled function params |