Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1F5i-0000cu-Ho for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2017 16:37:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1F5i-0003GN-2J for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2017 16:37:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1F5h-0003Fj-9r for pgsql-bugs@postgresql.org; Thu, 20 Apr 2017 16:37:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1F5d-00053n-PY for pgsql-bugs@postgresql.org; Thu, 20 Apr 2017 16:37:56 +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 v3KGbod0025588; Thu, 20 Apr 2017 12:37:50 -0400 From: Tom Lane To: "David G. Johnston" cc: Thorsten Glaser , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14628: regex description in online documentation misleadingly/wrong In-reply-to: References: <20170420152549.24365.74331@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Thu, 20 Apr 2017 09:02:08 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <25586.1492706270.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 20 Apr 2017 12:37:50 -0400 Message-ID: <25587.1492706270@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "David G. Johnston" writes: > ​So basically you feel its necessary for us to redundantly emphasize the > fact that we default to ARE because its different from your default choice > and, you imply but do not support, the choice of the majority of other > regular expression implementations. I can't get excited about this. It seems fairly difficult to me to make the case that more people would take "POSIX regular expression" to mean the basic form than the extended form. Most of our users probably don't know the difference in the first place, and would consider section 9.7.3.1 to be *the* definition of what an RE is to Postgres. Those who do know the difference would probably also turn to 9.7.3.1 to find out which form we're talking about. Once you get there, the requested information is pretty much the first thing you find. It's possible that we should restructure the section nesting to bring 9.7.3.1 up a level and thus make it more visible. I'm thinking something like 9.7.1. LIKE 9.7.2. SIMILAR TO Regular Expressions 9.7.3. POSIX Regular Expression Operators 9.7.4. POSIX Regular Expression Definition But that would be doing some violence to the basic structure of the chapter. We don't have separate sections for the definition of LIKE patterns or SIMILAR TO patterns --- admittedly, they hardly need it. One really simple change that might be worth doing is to turn the sentence "The POSIX pattern language is described in much greater detail below" into an actual link to 9.7.3.1. Once upon a time there wasn't much material in between, but now it seems like a clickable link would be good. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs