Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9947A633956 for ; Tue, 28 Apr 2009 18:46:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41297-04 for ; Tue, 28 Apr 2009 18:46:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 55659632C96 for ; Tue, 28 Apr 2009 18:46:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n3SLklab018592; Tue, 28 Apr 2009 17:46:47 -0400 (EDT) To: Arley Lewis cc: PostgreSQL Docs List Subject: Re: doc bug: SELECT SUBSTRING example is missing keyword FROM In-reply-to: <607ccf8a0904281134t5fc27233xa1d3d881bdc24012@mail.gmail.com> References: <607ccf8a0904281134t5fc27233xa1d3d881bdc24012@mail.gmail.com> Comments: In-reply-to Arley Lewis message dated "Tue, 28 Apr 2009 11:34:37 -0700" Date: Tue, 28 Apr 2009 17:46:46 -0400 Message-ID: <18591.1240955206@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/73 X-Sequence-Number: 5161 Arley Lewis writes: > Two "FROM"s are missing from this section. Where it now says: > ------------- > SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})'); > Result: 123 > SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})'); > Result: 1 There is nothing wrong with these examples. regression=# SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})'); substring ----------- 123 (1 row) regression=# SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})'); substring ----------- 1 (1 row) regards, tom lane