pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Docs: be explicit about datatype matching for lead/lag functions 7+ messages / 1 participants [nested] [flat]
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/94324abfb945bd470ec63f5745a0a2e2c218989c Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7c0c4d07e777957a5fad54e81b4f42f420031060 Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fc3649fd4c4b1571103f141bd804406e95e449b5 Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/845b91cbae20d8e081cfe917f6ddd24f39661855 Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8cffc4f5bdfbd41e27680fca27d82ae939cdeda8 Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/31934dd3ddc8efe1066fcc39137a142749556479 Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Docs: be explicit about datatype matching for lead/lag functions @ 2015-08-25 23:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-25 23:13 UTC (permalink / raw) To: pgsql-committers Docs: be explicit about datatype matching for lead/lag functions. The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/23ddcd77b72bdbec4f8e5fb618febefa1fea4d2d Modified Files -------------- doc/src/sgml/func.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-08-25 23:13 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us> 2015-08-25 23:13 pgsql: Docs: be explicit about datatype matching for lead/lag functions Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox