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 1jW7um-00009X-UT for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2020 00:27:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jW7ul-0000qk-FE for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2020 00:27:55 +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 1jW7uk-0000qZ-HF; Wed, 06 May 2020 00:27:55 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jW7ui-0005A1-5k; Wed, 06 May 2020 00:27:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=M9WCqyY8VXvS1ViiPwhKJvCC1xYUAoVFCHQp1FHBjX8=; b=EUCt6wzFakfcyyn2MplqDQHLrI lLShQrD9Nx3y8kpq3Kj4PiNvxf72sNHbHHvDN6SFQUHb2ou7SqnZ/ufMoczCNJOkrWj3ZLhKG0bGT 9BFwd6EfwX1rZUDH/6iX3c7YfaHOG8dDO76MIBqc1FIT/DSshnuuJNeo7xzvnOpX49gJXdCgHY0Nm 22c6N6g+hpI2lYARpPnkTkAiOGsc7XhHzpJNNDKfh06XXGLcHwkp0SM0KrEQ0qnp4+8wpEn3+oXLb BptXQoF0QWFV8uws7u05JLUNJC6RV1c8hmqhJRenaDgALTaFVgV8RjXcwEgABc26kLsvfxsC6OtdD EJRn+fWQ==; Received: from pool-173-56-10-231.nycmny.fios.verizon.net ([173.56.10.231] helo=Ph33rHippo.local) by meldrar.postgresql.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jW7uf-0006uq-17; Wed, 06 May 2020 00:27:51 +0000 Subject: Re: Another modest proposal for docs formatting: catalog descriptions To: Tom Lane , Fabien COELHO Cc: pgsql-docs@lists.postgresql.org, PostgreSQL Developers References: <12984.1588643549@sss.pgh.pa.us> <20976.1588688873@sss.pgh.pa.us> <1014.1588722172@sss.pgh.pa.us> From: "Jonathan S. Katz" Autocrypt: addr=jkatz@postgresql.org; keydata= mQINBFtShwABEAC7PNHDUOTYuifpUCk23KqfxdQQkn4nkoxOXRK0+rAj36FiwqGB4TJFuOVZ sDFAEiSlC8Jt4y5Cs7B5tetT8JNd2cs6zp/udMJJDz9d65O9PDpdlMgAmIiTzpLlSdx8FG56 DTksaDv1d8j3cTJPSE4/fWSxqzA7o3Y9UuL7atZPrzfImgpRKs0of7elIHwOa8GucjyhYqcR h60wFBJc2KXqQdDYRTZy43DSnY/0VNc0omiH355fustvpm+m5HjD3w7qZyfN3fpKJpnX1LCF f3MnPHaDGITIYGRCBXvf0UqUtD6OEVWPv2C2gyqWMIpWmZTOgDufltKyIByKBoS9x0PlFkij 04X3KODCngt+N8Ssc9OICc6QSxhjoP48PYPdmiTmkrGuf0LX084wj1xeo1NX7XxZK39F6dTJ DhsIiW0sNS0xMxQHLHG9VLbPjx3SANQBh6BuryPz5ZupW9/TIDmkvprtU/oXfKgtfYm3fxmk EctxbWrEPsFTFPyuMqQu6l+xyQv0s1VLZfjNWaua6H1/gGoIt6kRnn5qMXDVVpijuWkHbv7G ngaQMd258UrrOEHnnjzhQ7jxMWV9D+emxbAtlIxnYvCWlV4IwAQhEHfvudqYaIY3hNWrvQ6H GB2KXoTZYN9g5djm14/5nj1IU5zOcovkjJnKhoo9iStnpFF2cwARAQABtCd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YzHDI+Nd1I/LOBoPc3UorRMF2M4JV kUR7skOHWUbPTSNUr7qc14NSMY3PKjGeVGAsBVHBPvmRx/Ss2tW/TpJWpxg4pmquFQSXuaYh Yf4FN8Sxy320pcr+FqN8AhZkYJcNY82OTtR5VEKRC/mYcyq61qXIKqngydn79bJjGxHipxyF FmEC Message-ID: Date: Tue, 5 May 2020 20:27:46 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1014.1588722172@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MjCklAlHlR4FpKxooeeYRrhogmIrJn03C" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MjCklAlHlR4FpKxooeeYRrhogmIrJn03C Content-Type: multipart/mixed; boundary="3Xi24XIovGBUzxHoZQ4EZCYbPzqnRhV4U" --3Xi24XIovGBUzxHoZQ4EZCYbPzqnRhV4U Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/5/20 7:42 PM, Tom Lane wrote: > Here's a really quick-n-dirty prototype patch that just converts the > pg_aggregate table to the proposed style, plus a screenshot for those > who don't feel like actually building the docs with the patch. Not opposed to building the docs, but the screenshot expedites things ;) > Looking at the results, it seems like we could really use a bit more > horizontal space between the column names and data types, and perhaps > also between the types and the (references) annotations. Other than > that it looks decent. I don't know what's the cleanest way to add > some space there --- I'd rather not have the SGML text do it explicitly= =2E If each element (i.e. column name, data type) is wrapped in a HTML element with its own class (e.g. a span) it's fairly easy to add that space with CSS. I'm not sure the ramifications for the PDFs though. > There's room for complaint that this takes up more vertical space than > the old way, assuming you have a reasonably wide window. I'm not > terribly bothered by that, but maybe someone else will be? I'm incline= d > to think that that's well worth the benefit that we won't feel compelle= d > to keep column descriptions short. I think for reference materials, vertical space is acceptable. It seems to be the "mobile way" of doing things, since people are scrolling down. (And unlike the mailing lists, we don't need to keep the font small ;) Anyway, +1 > BTW, this being just a test hack, I repurposed the "func_table_entry" a= nd > "func_signature" style marker roles. If we do this for real then of > course we'd want to use different roles, even if they happen to mark up= > the same for now. Agreed. Thanks, Jonathan --3Xi24XIovGBUzxHoZQ4EZCYbPzqnRhV4U-- --MjCklAlHlR4FpKxooeeYRrhogmIrJn03C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+oS2la8r95ogZD/x8QSccp8cZScFAl6yBIIACgkQ8QSccp8c ZSe7PQ/+MrFkLQNGOVIF8IxBE6+XNj3Kx1g3UWARvU/Mrc885FILiIQXWGcQbv7K ZYKP/Pl2jluEWpwv2NBWZdHl49dG0Mb2+UrFPe1EmTfZAlUdQq/Gf8iJG8/VNAiS YWGMvRvWuQfVDz6DepB0q1YQAriXLzZSGo2TF8JYsOeH8BwpoTDasxJIICUQfC+p Z54Xy3a/GHqbMf3qOq3Bd6ccLAL9cchO2zPPzKMXXXG5wCVeOXmEL6KaL+CxbIAL wkZ8NifVvPI5vcTDB8VVKqgU0STzsmL/jn8Q5C3inIt/bvWWPXWA/s044XzhSw6a k4qCc1c9xzYsIYLqbOw9dBkAwbQ2ZNx7tBNAYLTOKGyqmVv49aFvRFuC3eVFbApl 2PRWQmB/0qu6LsMbCPjvNTZwJITWsSMLwHTRsX7CoimG17+GsFIAVyKvDPXhQkzy t/MP8cnv2ZkYw1V+rHWrydFvF41oKsOPud3yr/u+K3aRvSfjec/1MpdBxWttvRwJ zh7+4M+HFSqBXMnk9EyZjdniwN/l3iH+MCQ4VeuVuha5ZhlqhxCQmOfVQ3Xkemui kcE9xXPZiPyRPSBJUZ0NN8febqspI+4DazdlFpZIRCKbhzoyChayBqdUePIFQCmW OdKDxSzBdPXxxam4ZYz4jVcTi1TIgIxcTTSGB2qvcpzGqgdcRrY= =tzfv -----END PGP SIGNATURE----- --MjCklAlHlR4FpKxooeeYRrhogmIrJn03C--