pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedMinor mistake in string functions docs - overlay
2+ messages / 2 participants
[nested] [flat]
* Minor mistake in string functions docs - overlay
@ 2014-12-11 15:51 Roy Tate <roy.l.tate@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Roy Tate @ 2014-12-11 15:51 UTC (permalink / raw)
To: pgsql-docs
I found a minor mistake in the documentation of string functions.
http://www.postgresql.org/docs/9.4/static/functions-string.html
In table 9-6 examples and results columns, look at the overlay function,
which has 4 x characters, but overlays 3 characters. Please remove an x.
overlay('T*xxxx*as' placing 'hom' from 2 for 4) Thomas
Please change the call to { *overlay('Txxxas'* ... }
Have a good day, and thanks for creating such amazing documentation.
Roy Tate
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Minor mistake in string functions docs - overlay
@ 2014-12-12 02:10 Tom Lane <tgl@sss.pgh.pa.us>
parent: Roy Tate <roy.l.tate@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2014-12-12 02:10 UTC (permalink / raw)
To: Roy Tate <roy.l.tate@gmail.com>; +Cc: pgsql-docs
Roy Tate <roy.l.tate@gmail.com> writes:
> I found a minor mistake in the documentation of string functions.
> http://www.postgresql.org/docs/9.4/static/functions-string.html
> In table 9-6 examples and results columns, look at the overlay function,
> which has 4 x characters, but overlays 3 characters. Please remove an x.
Really? The example works as stated for me:
regression=# select overlay('Txxxxas' placing 'hom' from 2 for 4);
overlay
---------
Thomas
(1 row)
Removing an 'x' would give
regression=# select overlay('Txxxas' placing 'hom' from 2 for 4);
overlay
---------
Thoms
(1 row)
I think the example is trying to point out that the replacement string
need not be the same length as what is replaced.
regards, tom lane
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-12-12 02:10 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-11 15:51 Minor mistake in string functions docs - overlay Roy Tate <roy.l.tate@gmail.com>
2014-12-12 02:10 ` 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