pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Karl O. Pinc <kop@meme.com>
Cc: Devrim Gündüz <devrim@gunduz.org>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: Re: [BUGS] BUG #14299: initdb and man pages are not installed in the alternatives system
Date: Wed, 31 Aug 2016 11:35:27 +0200
Message-ID: <20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de> (raw)
In-Reply-To: <20160830080047.2a89b286@slate.meme.com>
References: <20160827155016.15676.95799@wrigleys.postgresql.org>
	<1472545443.17764.4.camel@gunduz.org>
	<20160830080047.2a89b286@slate.meme.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

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-p...
> 
> 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



view thread (4+ messages)

Message-ID: <20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de>
Permalink:  ../20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de/
Also on:    postgresql.org/message-id/20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: myon@debian.org, kop@meme.com, devrim@gunduz.org, pgsql-bugs@postgresql.org
  Subject: Re: [BUGS] BUG #14299: initdb and man pages are not installed in the alternatives system
  In-Reply-To: <20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de>
  References: <20160827155016.15676.95799@wrigleys.postgresql.org> <1472545443.17764.4.camel@gunduz.org> <20160830080047.2a89b286@slate.meme.com> <20160831093527.ikgf4v3w3jfnhjjy@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox