From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Marko Kreen <markokr(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruno Wolff III <bruno(at)wolff(dot)to>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Inconsistent syntax in GRANT |
Date: | 2006-01-06 21:49:05 |
Message-ID: | 200601062149.k06Ln5Z19651@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Marko Kreen wrote:
> > In any case I think we are wasting our time discussing it, and instead
> > should be looking through the SQL2003 spec to see what it requires.
> > Bruce couldn't find anything in it about this but I can't believe the
> > info isn't there somewhere.
>
> Google tells that Oracle has ALTER and SELECT; DB2 has ALTER and USAGE.
>
> I found SQL2003 pdf's too ... from my reading it has only USAGE.
>
> 5WD-02-Foundation-2003-09.pdf:
> page 724 -> General Rules -> #2
> page 740 -> Syntax rules -> #3
I admit I am terrible at understanding the standard, but I can't find
anything relevant on the page numbers you mentioned. Are those the
document pages or the page numbers displayed by the PDF viewer? What is
the section heading? I am using the same filename you have.
> Everything combined:
> SELECT: currval
> UPDATE: nextval
> USAGE: currval, nextval
> ALTER: setval
>
> Confusing?
I see USAGE in the standard, but not ALTER. We don't support USAGE so I
am guessing our SELECT/UPDATE behavior is OK. Does this mean we should
only allow owners to do setval(), rather than binding it to INSERT?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Kreen | 2006-01-06 22:10:29 | Re: [HACKERS] Inconsistent syntax in GRANT |
Previous Message | Marko Kreen | 2006-01-06 21:29:10 | Re: [HACKERS] Inconsistent syntax in GRANT |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-01-06 22:01:19 | Re: [HACKERS] Inconsistent syntax in GRANT |
Previous Message | Marko Kreen | 2006-01-06 21:29:10 | Re: [HACKERS] Inconsistent syntax in GRANT |