Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beieu-0000lB-Kp for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 30 Aug 2016 13:00:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beieu-0001t1-2c for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 30 Aug 2016 13:00:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beiet-0001sc-8l; Tue, 30 Aug 2016 13:00:55 +0000 Received: from janus.meme.com ([69.17.73.118] helo=smtp.meme.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beiep-0003eX-BW; Tue, 30 Aug 2016 13:00:54 +0000 Received: from slate.meme.com (unknown [192.168.1.14]) by smtp.meme.com (Postfix) with ESMTPS id AA939A111; Tue, 30 Aug 2016 08:00:49 -0500 (CDT) Received: from slate.meme.com (localhost [IPv6:::1]) by slate.meme.com (Postfix) with ESMTP id 5B7013FB2E; Tue, 30 Aug 2016 08:00:49 -0500 (CDT) Date: Tue, 30 Aug 2016 08:00:47 -0500 From: "Karl O. Pinc" To: Devrim =?UTF-8?B?R8O8bmTDvHo=?= Cc: pgsql-bugs@postgresql.org, pgsql-pkg-debian@postgresql.org Subject: Re: [BUGS] BUG #14299: initdb and man pages are not installed in the alternatives system Message-ID: <20160830080047.2a89b286@slate.meme.com> In-Reply-To: <1472545443.17764.4.camel@gunduz.org> References: <20160827155016.15676.95799@wrigleys.postgresql.org> <1472545443.17764.4.camel@gunduz.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Hi Devrim, Thanks for the quick reply. On Tue, 30 Aug 2016 11:24:03 +0300 Devrim G=C3=BCnd=C3=BCz wrote: > Hi Karl, >=20 > On Sat, 2016-08-27 at 15:50 +0000, kop@meme.com wrote: > > Bug reference:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 14299 > > Logged by:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Karl P= inc > > Email address:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kop@meme.com > > PostgreSQL version: 9.5.4 > > Operating system:=C2=A0=C2=A0 RHEL 7 > > Description:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > Just installed PG 9.5 on a RHEL 7 box.=C2=A0 While client programs like > > psql and db_dump are installed in the alternatives system, initdb, > > and perhaps other server side programs, are not.=C2=A0 Consequently I > > must invoke initdb with a fully qualified path.=20=20 >=20 > This is intentional. We only create alternatives links for the > binaries that are cross version compatible. That is a natural effect > of being able to multiple version of RPMs. >=20 > > I can see man pages for psql (etc.) but not initdb.=C2=A0=20=20 >=20 > Actually initdb, etc. are just not under MANPATH: >=20 > man /usr/pgsql-9.5/share/man/man1/initdb.1 >=20 > would work. Right. What I'm intending to request here is that I not have to use fully qualified paths, whether for man pages or binaries. > > And I can't see any man pages for SQL commands like CREATE > > DATABASE.=C2=A0 By this I mean they are not in my MANPATH.=C2=A0 I pres= ume > > this is because they are not under the control of the alternatives > > system.=20=20 >=20 > I am not aware that we have man pages for SQL commands. You are > welcome to send patches > via=C2=A0https://redmine.postgresql.org/projects/pgrpms/issues=C2=A0. RH/Centos generates man7 pages of SQL commands using help2man.=20=20 See line 86 of the centos spec file: https://git.centos.org/blob/rpms!rh-postgresql95/36d55031946317af5a4f56f69d= 807ed907eb520c/SPECS!rh-postgresql95.spec;jsessionid=3Dvgg48opqwpk36x9pnf4k= 2j2z 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. > > I've not tried installing whatever package contains, say, > > pg_test_timing,=20=20 >=20 > (postgresql95-contrib) >=20 > > but it would be nice if all the PG upstream RPMs "did the right > > thing" with respect to alternatives and "just worked'.=20=20 >=20 > We made this design decision a few years ago, and I'm open to any > solutions / suggestions that won't break the multiple version > installation feature. 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. I have cc-ed the debian pg packagers. Perhaps they can describe their magic formula. I always assumed it was that I could enable any version of pg I wanted using alternatives but come to think of it I don't believe I ever have. Maybe I don't do enough work with multiple pg versions and have simply gotten lucky. Regardless, all the binaries seem to be in my $PATH whenever I need them. For more PG debian packager contact info see the CONTACT:People section of: https://wiki.postgresql.org/wiki/Apt Regards, Karl Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --=20 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