pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Introduce parse_ident()
3+ messages / 2 participants
[nested] [flat]
* pgsql: Introduce parse_ident()
@ 2016-03-18 15:25 Teodor Sigaev <teodor@sigaev.ru>
2016-03-18 15:37 ` Re: pgsql: Introduce parse_ident() Erik Rijkers <er@xs4all.nl>
0 siblings, 1 reply; 3+ messages in thread
From: Teodor Sigaev @ 2016-03-18 15:25 UTC (permalink / raw)
To: pgsql-committers
Introduce parse_ident()
SQL-layer function to split qualified identifier into array parts.
Author: Pavel Stehule with minor editorization by me and Jim Nasby
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/3187d6de0e5a9e805b27c48437897e8c39071d45
Modified Files
--------------
doc/src/sgml/func.sgml | 26 ++++
src/backend/catalog/system_views.sql | 7 ++
src/backend/parser/scansup.c | 12 +-
src/backend/utils/adt/misc.c | 224 +++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 3 +
src/include/parser/scansup.h | 3 +
src/include/utils/builtins.h | 1 +
src/test/regress/expected/name.out | 66 +++++++++++
src/test/regress/sql/name.sql | 33 ++++++
10 files changed, 375 insertions(+), 2 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] 3+ messages in thread
* Re: pgsql: Introduce parse_ident()
2016-03-18 15:25 pgsql: Introduce parse_ident() Teodor Sigaev <teodor@sigaev.ru>
@ 2016-03-18 15:37 ` Erik Rijkers <er@xs4all.nl>
2016-03-18 15:50 ` Re: pgsql: Introduce parse_ident() Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 3+ messages in thread
From: Erik Rijkers @ 2016-03-18 15:37 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: pgsql-committers; pgsql-committers-owner@postgresql.org
On 2016-03-18 16:25, Teodor Sigaev wrote:
> Introduce parse_ident()
>
> SQL-layer function to split qualified identifier into array parts.
>
[...]
> Details
> -------
> http://git.postgresql.org/pg/commitdiff/3187d6de0e5a9e805b27c48437897e8c39071d45
>
> Modified Files
> --------------
> doc/src/sgml/func.sgml | 26 ++++
Fixed a typo and added 'the' a few times.
Erik Rijkers
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Attachments:
func.sgml.diff (text/x-diff, 1.4K) download
--- doc/src/sgml/func.sgml.orig 2016-03-18 16:31:02.896878016 +0100
+++ doc/src/sgml/func.sgml 2016-03-18 16:33:19.727724710 +0100
@@ -1832,12 +1832,12 @@
false, extra characters after the identifier are ignored. This is useful
for parsing identifiers for objects like functions and arrays that may
have trailing characters. By default, extra characters after the last
- identifier are considered an error, but if second parameter is false,
- then chararacters after last identifier are ignored. Note that this
+ identifier are considered an error, but if the second parameter is false,
+ then the characters after the last identifier are ignored. Note that this
function does not truncate quoted identifiers. If you care about that
- you should cast the result of this function to name[]. A non-printable
- chararacters (like 0 to 31) are displayed as hexadecimal codes always,
- what can be different from PostgreSQL internal SQL identifiers
+ you should cast the result of this function to name[]. Non-printable
+ characters (like 0 to 31) are always displayed as hexadecimal codes,
+ which can be different from PostgreSQL internal SQL identifiers
processing, when the original escaped value is displayed.
</entry>
<entry><literal>parse_ident('"SomeSchema".someTable')</literal></entry>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Introduce parse_ident()
2016-03-18 15:25 pgsql: Introduce parse_ident() Teodor Sigaev <teodor@sigaev.ru>
2016-03-18 15:37 ` Re: pgsql: Introduce parse_ident() Erik Rijkers <er@xs4all.nl>
@ 2016-03-18 15:50 ` Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 0 replies; 3+ messages in thread
From: Teodor Sigaev @ 2016-03-18 15:50 UTC (permalink / raw)
To: Erik Rijkers <er@xs4all.nl>; +Cc: pgsql-committers; pgsql-committers-owner@postgresql.org
> Fixed a typo and added 'the' a few times.
Thank you, committed
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
--
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] 3+ messages in thread
end of thread, other threads:[~2016-03-18 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 15:25 pgsql: Introduce parse_ident() Teodor Sigaev <teodor@sigaev.ru>
2016-03-18 15:37 ` Erik Rijkers <er@xs4all.nl>
2016-03-18 15:50 ` Teodor Sigaev <teodor@sigaev.ru>
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