Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQ9vJ-00024O-CJ for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2020 13:23:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jQ9um-00074w-5S for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2020 13:23:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQ9ul-00074p-Uz for pgsql-hackers@lists.postgresql.org; Sun, 19 Apr 2020 13:23:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQ9ug-0001VC-Uc for pgsql-hackers@lists.postgresql.org; Sun, 19 Apr 2020 13:23:13 +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 03JDN1D0026010; Sun, 19 Apr 2020 09:23:01 -0400 From: Tom Lane To: Peter Eisentraut cc: Alvaro Herrera , Robert Haas , Steven Pousty , Pavel Stehule , Isaac Morland , Pierre Giraud , PostgreSQL Developers Subject: Re: Poll: are people okay with function/operator table redesign? In-reply-to: References: <20200416230304.GA28390@alvherre.pgsql> <17560.1587083109@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Sun, 19 Apr 2020 12:46:32 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26008.1587302581.1@sss.pgh.pa.us> Date: Sun, 19 Apr 2020 09:23:01 -0400 Message-ID: <26009.1587302581@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > This scares me in terms of maintainability of both the toolchain and the > markup. Table formatting is already incredibly fragile, and here we > just keep poking it until it looks a certain way instead of thinking > about semantic markup. That's a fair criticism, but ... > A good old definition list of the kind > synopsis > explanation > example or two > would be much easier to maintain on all fronts. And we could for > example link directly to a function, which is currently not really possible. > If we want to draw a box around this and change the spacing, we can do > that with CSS. ... "we can fix it with CSS" is just as much reliance on toolchain. In any case, I reject the idea that we should just drop the table markup altogether and use inline variablelists. In most of these sections there is a very clear separation between the table contents (with per-function or per-operator details) and the surrounding commentary, which deals with more general concerns. That's a useful separation for both readers and authors, so we need to preserve it in some form, but the standard rendering of variablelists won't. (Our existing major use of variablelists, in the GUC chapter, works around this basically by not having any "surrounding commentary" ... but that solution doesn't work here.) There is also value in being able to say things like "see Table m.n for the available operators for type foo". If somebody's got an idea how to obtain this painfully-agreed-to visual appearance from more robust markup, I'm all ears. This stuff is a bit outside my skill set, so I don't claim to have found the best possible implementation. regards, tom lane