pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Make argument names of pg_get_object_address consistent, and fix 5+ messages / 1 participants [nested] [flat]
* pgsql: Make argument names of pg_get_object_address consistent, and fix @ 2018-09-05 17:47 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-09-05 17:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make argument names of pg_get_object_address consistent, and fix docs. pg_get_object_address and pg_identify_object_as_address are supposed to be inverses, but they disagreed as to the names of the arguments representing the textual form of an object address. Moreover, the documented argument names didn't agree with reality at all, either for these functions or pg_identify_object. In HEAD and v11, I think we can get away with renaming the input arguments of pg_get_object_address to match the outputs of pg_identify_object_as_address. In theory that might break queries using named-argument notation to call pg_get_object_address, but it seems really unlikely that anybody is doing that, or that they'd have much trouble adjusting if they were. In older branches, we'll just live with the lack of consistency. Aside from fixing the documentation of these functions to match reality, I couldn't resist the temptation to do some copy-editing. Per complaint from Jean-Pierre Pelletier. Back-patch to 9.5 where these functions were introduced. (Before v11, this is a documentation change only.) Discussion: https://postgr.es/m/CANGqjDnWH8wsTY_GzDUxbt4i=y-85SJreZin4Hm8uOqv1vzRQA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ae5205c8a8eff6745fccd39b679ab9ee9c0d13c4 Modified Files -------------- doc/src/sgml/func.sgml | 91 +++++++++++++++++++++------------------- src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 2 +- 3 files changed, 49 insertions(+), 46 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make argument names of pg_get_object_address consistent, and fix @ 2018-09-05 17:47 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-09-05 17:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make argument names of pg_get_object_address consistent, and fix docs. pg_get_object_address and pg_identify_object_as_address are supposed to be inverses, but they disagreed as to the names of the arguments representing the textual form of an object address. Moreover, the documented argument names didn't agree with reality at all, either for these functions or pg_identify_object. In HEAD and v11, I think we can get away with renaming the input arguments of pg_get_object_address to match the outputs of pg_identify_object_as_address. In theory that might break queries using named-argument notation to call pg_get_object_address, but it seems really unlikely that anybody is doing that, or that they'd have much trouble adjusting if they were. In older branches, we'll just live with the lack of consistency. Aside from fixing the documentation of these functions to match reality, I couldn't resist the temptation to do some copy-editing. Per complaint from Jean-Pierre Pelletier. Back-patch to 9.5 where these functions were introduced. (Before v11, this is a documentation change only.) Discussion: https://postgr.es/m/CANGqjDnWH8wsTY_GzDUxbt4i=y-85SJreZin4Hm8uOqv1vzRQA@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/337bf254ae81a3c8426504f3bee04cd6c5eb8a59 Modified Files -------------- doc/src/sgml/func.sgml | 91 +++++++++++++++++++++------------------- src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 2 +- 3 files changed, 49 insertions(+), 46 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make argument names of pg_get_object_address consistent, and fix @ 2018-09-05 17:47 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-09-05 17:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make argument names of pg_get_object_address consistent, and fix docs. pg_get_object_address and pg_identify_object_as_address are supposed to be inverses, but they disagreed as to the names of the arguments representing the textual form of an object address. Moreover, the documented argument names didn't agree with reality at all, either for these functions or pg_identify_object. In HEAD and v11, I think we can get away with renaming the input arguments of pg_get_object_address to match the outputs of pg_identify_object_as_address. In theory that might break queries using named-argument notation to call pg_get_object_address, but it seems really unlikely that anybody is doing that, or that they'd have much trouble adjusting if they were. In older branches, we'll just live with the lack of consistency. Aside from fixing the documentation of these functions to match reality, I couldn't resist the temptation to do some copy-editing. Per complaint from Jean-Pierre Pelletier. Back-patch to 9.5 where these functions were introduced. (Before v11, this is a documentation change only.) Discussion: https://postgr.es/m/CANGqjDnWH8wsTY_GzDUxbt4i=y-85SJreZin4Hm8uOqv1vzRQA@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0f3637ace36bf42f5385a3304e28f8530c5691d1 Modified Files -------------- doc/src/sgml/func.sgml | 107 +++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 52 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make argument names of pg_get_object_address consistent, and fix @ 2018-09-05 17:47 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-09-05 17:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make argument names of pg_get_object_address consistent, and fix docs. pg_get_object_address and pg_identify_object_as_address are supposed to be inverses, but they disagreed as to the names of the arguments representing the textual form of an object address. Moreover, the documented argument names didn't agree with reality at all, either for these functions or pg_identify_object. In HEAD and v11, I think we can get away with renaming the input arguments of pg_get_object_address to match the outputs of pg_identify_object_as_address. In theory that might break queries using named-argument notation to call pg_get_object_address, but it seems really unlikely that anybody is doing that, or that they'd have much trouble adjusting if they were. In older branches, we'll just live with the lack of consistency. Aside from fixing the documentation of these functions to match reality, I couldn't resist the temptation to do some copy-editing. Per complaint from Jean-Pierre Pelletier. Back-patch to 9.5 where these functions were introduced. (Before v11, this is a documentation change only.) Discussion: https://postgr.es/m/CANGqjDnWH8wsTY_GzDUxbt4i=y-85SJreZin4Hm8uOqv1vzRQA@mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5b114b045a479e584be9252dedac4c357c456311 Modified Files -------------- doc/src/sgml/func.sgml | 107 +++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 52 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make argument names of pg_get_object_address consistent, and fix @ 2018-09-05 17:47 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-09-05 17:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make argument names of pg_get_object_address consistent, and fix docs. pg_get_object_address and pg_identify_object_as_address are supposed to be inverses, but they disagreed as to the names of the arguments representing the textual form of an object address. Moreover, the documented argument names didn't agree with reality at all, either for these functions or pg_identify_object. In HEAD and v11, I think we can get away with renaming the input arguments of pg_get_object_address to match the outputs of pg_identify_object_as_address. In theory that might break queries using named-argument notation to call pg_get_object_address, but it seems really unlikely that anybody is doing that, or that they'd have much trouble adjusting if they were. In older branches, we'll just live with the lack of consistency. Aside from fixing the documentation of these functions to match reality, I couldn't resist the temptation to do some copy-editing. Per complaint from Jean-Pierre Pelletier. Back-patch to 9.5 where these functions were introduced. (Before v11, this is a documentation change only.) Discussion: https://postgr.es/m/CANGqjDnWH8wsTY_GzDUxbt4i=y-85SJreZin4Hm8uOqv1vzRQA@mail.gmail.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ccd9a4dbc8806806e82e764e91263383741a782a Modified Files -------------- doc/src/sgml/func.sgml | 107 +++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 52 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-09-05 17:47 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-09-05 17:47 pgsql: Make argument names of pg_get_object_address consistent, and fix Tom Lane <tgl@sss.pgh.pa.us> 2018-09-05 17:47 pgsql: Make argument names of pg_get_object_address consistent, and fix Tom Lane <tgl@sss.pgh.pa.us> 2018-09-05 17:47 pgsql: Make argument names of pg_get_object_address consistent, and fix Tom Lane <tgl@sss.pgh.pa.us> 2018-09-05 17:47 pgsql: Make argument names of pg_get_object_address consistent, and fix Tom Lane <tgl@sss.pgh.pa.us> 2018-09-05 17:47 pgsql: Make argument names of pg_get_object_address consistent, and fix 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