Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XzFgu-00078i-AD for pgsql-docs@arkaria.postgresql.org; Fri, 12 Dec 2014 02:10:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XzFgt-0006dC-MR for pgsql-docs@arkaria.postgresql.org; Fri, 12 Dec 2014 02:10:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XzFgt-0006d6-3U for pgsql-docs@postgresql.org; Fri, 12 Dec 2014 02:10:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XzFgq-0008Bg-25 for pgsql-docs@postgresql.org; Fri, 12 Dec 2014 02:10:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBC2Afht022821; Thu, 11 Dec 2014 21:10:41 -0500 From: Tom Lane To: Roy Tate cc: pgsql-docs@postgresql.org Subject: Re: Minor mistake in string functions docs - overlay In-reply-to: References: Comments: In-reply-to Roy Tate message dated "Thu, 11 Dec 2014 09:51:28 -0600" Date: Thu, 11 Dec 2014 21:10:41 -0500 Message-ID: <22820.1418350241@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Roy Tate 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