ToDo: add documentation for operator IS OF
ToDo: add documentation for operator IS OF
От:
"Pavel Stehule" <pavel.stehule@hotmail.com>
Дата:
Hello, I miss doc for this operator Regards Pavel Stehule _________________________________________________________________ Emotikony a pozadi programu MSN Messenger ozivi vasi konverzaci. http://messenger.msn.cz/
Re: ToDo: add documentation for operator IS OF
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Pavel Stehule wrote:
> Hello,
>
> I miss doc for this operator
Strang IS [NOT] OF wasn't documented, especially seeing it was added in
PostgreSQL 7.3. Anyway, documented and backpatched to 8.2.X.
--
Bruce Momjian http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.365
diff -c -c -r1.365 func.sgml
*** doc/src/sgml/func.sgml 19 Feb 2007 22:51:44 -0000 1.365
--- doc/src/sgml/func.sgml 20 Feb 2007 00:24:15 -0000
***************
*** 411,416 ****
--- 411,432 ----
IS NOT NULL, respectively, except that the input
expression must be of Boolean type.
+
+
+
+ IS OF
+
+
+ IS NOT OF
+
+ It is possible to check the data type of an expression using the
+ constructs
+
+ expression IS OF (typename, ...)
+ expression IS NOT OF (typename, ...)
+
+ They return a boolean value based on whether the expression's data
+ type is one of the listed data types.
Index: doc/src/sgml/syntax.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v
retrieving revision 1.115
diff -c -c -r1.115 syntax.sgml
*** doc/src/sgml/syntax.sgml 6 Feb 2007 09:16:07 -0000 1.115
--- doc/src/sgml/syntax.sgml 20 Feb 2007 00:24:15 -0000
***************
*** 847,853 ****
IS
! IS TRUE</>, IS FALSE</>, IS UNKNOWN</>, IS NULL</>
--- 847,854 ----
IS
! IS TRUE</>, IS FALSE</>, IS
! UNKNOWN</>, IS NULL</>, IS OF</>
Re: ToDo: add documentation for operator IS OF
От:
Joe Conway <mail@joeconway.com>
Дата:
Bruce Momjian wrote: > Pavel Stehule wrote: >> Hello, >> >> I miss doc for this operator > > Strang IS [NOT] OF wasn't documented, especially seeing it was added in > PostgreSQL 7.3. Anyway, documented and backpatched to 8.2.X. Here's the reason -- see this thread: http://archives.postgresql.org/pgsql-patches/2003-08/msg00062.php Joe
Re: ToDo: add documentation for operator IS OF
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Joe Conway wrote: > Bruce Momjian wrote: > > Pavel Stehule wrote: > >> Hello, > >> > >> I miss doc for this operator > > > > Strang IS [NOT] OF wasn't documented, especially seeing it was added in > > PostgreSQL 7.3. Anyway, documented and backpatched to 8.2.X. > > Here's the reason -- see this thread: > http://archives.postgresql.org/pgsql-patches/2003-08/msg00062.php Wow, interesting. I do remember that now. Should I revert the documentation addition and add a comment to gram.y? -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
Re: ToDo: add documentation for operator IS OF
От:
"Pavel Stehule" <pavel.stehule@hotmail.com>
Дата:
>Joe Conway wrote: > > Bruce Momjian wrote: > > > Pavel Stehule wrote: > > >> Hello, > > >> > > >> I miss doc for this operator > > > > > > Strang IS [NOT] OF wasn't documented, especially seeing it was added >in > > > PostgreSQL 7.3. Anyway, documented and backpatched to 8.2.X. > > > > Here's the reason -- see this thread: > > http://archives.postgresql.org/pgsql-patches/2003-08/msg00062.php > >Wow, interesting. I do remember that now. Should I revert the >documentation addition and add a comment to gram.y? > Nobody worked on this subject a lot of years. Who need it, knows about it and use it. I am for this topic is documented and in doc is note about difference from standard and about some incompletness of this operator. regards Pavel Stehule _________________________________________________________________ Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/
Re: ToDo: add documentation for operator IS OF
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Pavel Stehule" writes: > Nobody worked on this subject a lot of years. Who need it, knows about it > and use it. I am for this topic is documented and in doc is note about > difference from standard and about some incompletness of this operator. Once we document it there's going to be a backward-compatibility issue for any proposals to fix it. And I do think it is broken in a number of ways: http://archives.postgresql.org/pgsql-patches/2003-08/msg00060.php Per the link Joe cited, I'm not real thrilled with the spec's special treatment of NULL, but I'd like to see us fix IS OF so that it can be a substitute for testing tableoid to see which child table a tuple came from. And we definitely need to consider the domain issue. regards, tom lane
Re: ToDo: add documentation for operator IS OF
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Am Dienstag, 20. Februar 2007 02:13 schrieb Bruce Momjian: > Wow, interesting. I do remember that now. Should I revert the > documentation addition and add a comment to gram.y? I'd say remove the code. -- Peter Eisentraut http://developer.postgresql.org/~petere/
Re: ToDo: add documentation for operator IS OF
От:
"Pavel Stehule" <pavel.stehule@hotmail.com>
Дата:
>Am Dienstag, 20. Februar 2007 02:13 schrieb Bruce Momjian: > > Wow, interesting. I do remember that now. Should I revert the > > documentation addition and add a comment to gram.y? > >I'd say remove the code. > Propably nobody use it for inheritancy, but some people (I am too) use it in polymorphic functions. You can remove it, but please replace it. Regards Pavel Stehule _________________________________________________________________ Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/
Re: ToDo: add documentation for operator IS OF
От:
Bruce Momjian <bruce@momjian.us>
Дата:
bruce wrote: > Joe Conway wrote: > > Bruce Momjian wrote: > > > Pavel Stehule wrote: > > >> Hello, > > >> > > >> I miss doc for this operator > > > > > > Strang IS [NOT] OF wasn't documented, especially seeing it was added in > > > PostgreSQL 7.3. Anyway, documented and backpatched to 8.2.X. > > > > Here's the reason -- see this thread: > > http://archives.postgresql.org/pgsql-patches/2003-08/msg00062.php > > Wow, interesting. I do remember that now. Should I revert the > documentation addition and add a comment to gram.y? OK, I have votes to remove the code, remove the documentation, and keep all of it but document its behavior might change in the future. I will leave the documentation, but comment it out so it doesn't appear in the output, and state why in the comment. I will also add a TODO item. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
Re: ToDo: add documentation for operator IS OF
От:
"Pavel Stehule" <pavel.stehule@hotmail.com>
Дата:
> > documentation addition and add a comment to gram.y? > >OK, I have votes to remove the code, remove the documentation, and keep >all of it but document its behavior might change in the future. what code do you want to remove? > >I will leave the documentation, but comment it out so it doesn't appear >in the output, and state why in the comment. > >I will also add a TODO item. > >-- > Bruce Momjian http://momjian.us > EnterpriseDB http://www.enterprisedb.com > > + If your life is a hard drive, Christ can be your backup. + _________________________________________________________________ Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/
Re: ToDo: add documentation for operator IS OF
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Pavel Stehule wrote: > > > documentation addition and add a comment to gram.y? > > > >OK, I have votes to remove the code, remove the documentation, and keep > >all of it but document its behavior might change in the future. > > what code do you want to remove? Peter suggested removing the IS OF code itself. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
Re: ToDo: add documentation for operator IS OF
От:
"Pavel Stehule" <pavel.stehule@hotmail.com>
Дата:
> > what code do you want to remove? > >Peter suggested removing the IS OF code itself. > without compensation you hip lot of people. Time for removing was 4 years ago. Regards Pavel Stehule _________________________________________________________________ Citite se osamele? Poznejte nekoho vyjmecneho diky Match.com. http://www.msn.cz/