Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf1vi-0001zw-FG for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 31 Aug 2016 09:35:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bf1vh-0007IJ-4P for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 31 Aug 2016 09:35:33 +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 1bf1vg-0007IA-TK; Wed, 31 Aug 2016 09:35:32 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bf1vd-0001fT-6G; Wed, 31 Aug 2016 09:35:32 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3sPKxW5mwYz3F0Z; Wed, 31 Aug 2016 11:35:27 +0200 (CEST) Date: Wed, 31 Aug 2016 11:35:27 +0200 From: Christoph Berg To: "Karl O. Pinc" Cc: Devrim =?iso-8859-1?B?R/xuZPx6?= , pgsql-bugs@postgresql.org, pgsql-pkg-debian@postgresql.org Subject: Re: Re: [BUGS] BUG #14299: initdb and man pages are not installed in the alternatives system Message-ID: <20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de> Mail-Followup-To: Christoph Berg , "Karl O. Pinc" , Devrim =?iso-8859-1?B?R/xuZPx6?= , pgsql-bugs@postgresql.org, pgsql-pkg-debian@postgresql.org References: <20160827155016.15676.95799@wrigleys.postgresql.org> <1472545443.17764.4.camel@gunduz.org> <20160830080047.2a89b286@slate.meme.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160830080047.2a89b286@slate.meme.com> User-Agent: Mutt/1.6.2-neo (2016-07-23) X-Pg-Spam-Score: -3.4 (---) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Re: Karl O. Pinc 2016-08-30 <20160830080047.2a89b286@slate.meme.com> > > I am not aware that we have man pages for SQL commands. You are > > welcome to send patches > > via https://redmine.postgresql.org/projects/pgrpms/issues . > > RH/Centos generates man7 pages of SQL commands using help2man. > See line 86 of the centos spec file: > https://git.centos.org/blob/rpms!rh-postgresql95/36d55031946317af5a4f56f69d807ed907eb520c/SPECS!rh-postgresql95.spec;jsessionid=vgg48opqwpk36x9pnf4k2j2z > > Apologies for not sending a patch. > > Debian also generates man pages for all the SQL commands. > These seem to be the psql \h output, although I've not > looked to see how it's done. The SQL manpages are built as part of the stock documentation build. "make -C doc man" and friends. They have much more content than "psql \h". > Because RH has `alternatives` perhaps the thing to do is to talk > to the debian packagers and adopt a consistent cross-distro policy. > I've never had any trouble with multiple PG versions on debian; I've > never had to think about it. So they must be doing something right. postgresql-common is also using update-alternatives to manage symlinks to manpages (though less so for binaries). I believe what we do differently is to use the "slave links" mechanism to manage a gazillion of symlinks through one master, while the yum packaging uses individual links. > I have cc-ed the debian pg packagers. Perhaps they can describe > their magic formula. https://anonscm.debian.org/cgit/pkg-postgresql/postgresql-common.git/ There's even a .spec file in there if you want to try it on RH :) Christoph -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian