pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix regrole and regnamespace types to honor quoting like other r 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix regrole and regnamespace types to honor quoting like other r @ 2016-01-04 06:04 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-01-04 06:04 UTC (permalink / raw) To: pgsql-committers Fix regrole and regnamespace types to honor quoting like other reg* types. Aside from any consistency arguments, this is logically necessary because the I/O functions for these types also handle numeric OID values. Without a quoting rule it is impossible to distinguish numeric OIDs from role or namespace names that happen to contain only digits. Also change the to_regrole and to_regnamespace functions to dequote their arguments. While not logically essential, this seems like a good idea since the other to_reg* functions do it. Anyone who really wants raw lookup of an uninterpreted name can fall back on the time-honored solution of (SELECT oid FROM pg_namespace WHERE nspname = whatever). Report and patch by Jim Nasby, reviewed by Michael Paquier Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/fb1227af67eae5e97795f7e3563673c6e67d2844 Modified Files -------------- src/backend/utils/adt/regproc.c | 48 ++++++++-- src/test/regress/expected/regproc.out | 169 ++++++++++++++++++++++++--------- src/test/regress/sql/regproc.sql | 44 +++++++-- 3 files changed, 201 insertions(+), 60 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] 2+ messages in thread
* pgsql: Fix regrole and regnamespace types to honor quoting like other r @ 2016-01-04 06:04 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-01-04 06:04 UTC (permalink / raw) To: pgsql-committers Fix regrole and regnamespace types to honor quoting like other reg* types. Aside from any consistency arguments, this is logically necessary because the I/O functions for these types also handle numeric OID values. Without a quoting rule it is impossible to distinguish numeric OIDs from role or namespace names that happen to contain only digits. Also change the to_regrole and to_regnamespace functions to dequote their arguments. While not logically essential, this seems like a good idea since the other to_reg* functions do it. Anyone who really wants raw lookup of an uninterpreted name can fall back on the time-honored solution of (SELECT oid FROM pg_namespace WHERE nspname = whatever). Report and patch by Jim Nasby, reviewed by Michael Paquier Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fa038f830b64779475b746a6840db9bdd0298d80 Modified Files -------------- src/backend/utils/adt/regproc.c | 48 ++++++++-- src/test/regress/expected/regproc.out | 169 ++++++++++++++++++++++++--------- src/test/regress/sql/regproc.sql | 44 +++++++-- 3 files changed, 201 insertions(+), 60 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] 2+ messages in thread
end of thread, other threads:[~2016-01-04 06:04 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-01-04 06:04 pgsql: Fix regrole and regnamespace types to honor quoting like other r Tom Lane <tgl@sss.pgh.pa.us> 2016-01-04 06:04 pgsql: Fix regrole and regnamespace types to honor quoting like other r 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