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 1oTK8B-0006TE-0h for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 09:35:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTK88-00054C-ND for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 09:35:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTK87-000542-Nd for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 09:35:28 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTK7z-0003Uk-Q3 for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 09:35:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A65AE5C00CC; Wed, 31 Aug 2022 05:35:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 31 Aug 2022 05:35:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1661938518; x=1662024918; bh=p 00CI5hqH5hNPLYUy3B29U2RZqGc5dm87jSHlM6dGdw=; b=GArjpaQCP0zN3jJI9 IkBen32zcVcMgS47QzsqS4i5pJ2+VdPDCHnVpmSoA5m5U6XQSrPdbOzU/AYOQpul f+r757xpGG36hBC6ADQkR0AM/q1B8GOUWuiJKT/iD2YbwZDBD1MwrRxo3MinEu9b +7v60WoAoIzGg02c240keNvgYbJFdDLygM8yTbVEyGt8+NJDcNku3LfVTz1jcN6c 0Sff6h4H0hZ2p6dVu84r0LGWgc+e10IEZJjJ9wR6Ry9wm1cpJiUKxlqW4nl4DkA/ OqE6VhOHr3/mDAysVBteVCGhJP7hIoOBEgc761SWma+ffL0pOko4ZvvjHGzFnTdO zkqzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekhedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepffevgfeuudeuleeiueef jedvhffftedttddugedvueeutdduvdehvdehffdujefhnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvug gsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 31 Aug 2022 05:35:17 -0400 (EDT) Message-ID: <357fec80-cb54-1455-0632-b23d844e5a68@enterprisedb.com> Date: Wed, 31 Aug 2022 11:35:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: plpgsql-trigger.html: Format TG_ variables as table (patch) Content-Language: en-US To: Christoph Berg , PostgreSQL Hackers References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 30.08.22 15:16, Christoph Berg wrote: > I found the list of TG_ variables on > https://www.postgresql.org/docs/current/plpgsql-trigger.html#PLPGSQL-DML-TRIGGER > hard to read for several reasons: too much whitespace, all the lines > start with "Data type", and even after that, the actual content is > hiding behind some extra "variable that..." boilerplate. > > The attached patch formats the list as a table, and removes some of > the clutter from the text. > > I reused the catalog_table_entry table machinery, that is probably not > quite the correct thing, but I didn't find a better variant, and the > result looks ok. I find the new version even harder to read. The catalog_table_entry stuff doesn't really make sense here, since what you have before is already a definition list, and afterwards you have the same, just marked up "incorrectly". We could move the data type in the , similar to how you did it in your patch. I agree the whitespace layout is weird, but that's a problem of the website CSS stylesheet. I think it looks a bit better with the local stylesheet, but that can all be tweaked.