Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwo7h-004JGk-SH for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Apr 2024 19:05:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rwo7g-005htS-Cn for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Apr 2024 19:05:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwo7g-005htK-3Q for pgsql-hackers@lists.postgresql.org; Tue, 16 Apr 2024 19:05:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwo7d-003B3d-Bx for pgsql-hackers@postgresql.org; Tue, 16 Apr 2024 19:05:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 43GJ5WGn1355792; Tue, 16 Apr 2024 15:05:32 -0400 From: Tom Lane To: Andres Freund cc: Andrew Dunstan , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: documentation structure In-reply-to: <20240416182310.2j6g5fqqcwi4s6wm@awork3.anarazel.de> References: <20240416182310.2j6g5fqqcwi4s6wm@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 16 Apr 2024 11:23:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1355790.1713294332.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Apr 2024 15:05:32 -0400 Message-ID: <1355791.1713294332@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I think we should work on generating a lot of func.sgml. Particularly t= he > signature etc should just come from pg_proc.dat, it's pointlessly painfu= l to > generate that by hand. And for a lot of the functions we should probably= move > the existing func.sgml comments to the description in pg_proc.dat. Where are you going to get the examples and text descriptions from? (And no, I don't agree that the pg_description string should match what's in the docs. The description string has to be a short one-liner in just about every case.) This sounds to me like it would be a painful exercise with not a lot of benefit in the end. I do agree with Andrew that splitting func.sgml into multiple files would be beneficial. regards, tom lane