Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsTG1-0001pL-Da for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Sep 2017 12:28:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsTG0-0004wH-W8 for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Sep 2017 12:28:37 +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 1dsOoH-0006q1-IO for pgsql-bugs@postgresql.org; Thu, 14 Sep 2017 07:43:41 +0000 Received: from mail.raveland.org ([108.61.176.155]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsOoD-0000g2-Ic for pgsql-bugs@postgresql.org; Thu, 14 Sep 2017 07:43:40 +0000 Received: from digipea.digitick.local (unknown [78.153.242.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pea@raveland.org) by mail.raveland.org (Postfix) with ESMTPSA id A0F6A242A51; Thu, 14 Sep 2017 09:43:35 +0200 (CEST) Date: Thu, 14 Sep 2017 09:43:32 +0200 From: Pierre-Emmanuel =?iso-8859-15?Q?Andr=E9?= To: Paul Covello Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #14814: Documentation errors for OpenBSD Message-ID: <20170914074332.w272ha63ofiyr2ft@digipea.digitick.local> References: <20170913074811.25638.69564@wrigleys.postgresql.org> <10573.1505310888@sss.pgh.pa.us> <3258FA55-8F17-4DF8-BDCB-9E2A6D36F6E6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3258FA55-8F17-4DF8-BDCB-9E2A6D36F6E6@gmail.com> X-Operating-System: Linux 4.9.0-3-amd64 x86_64 User-Agent: NeoMutt/20170113 (1.7.2) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi Paul, (I'm keeping the post posting). Thanks for your message. I agree with Tom. The PostgreSQL's documentation must stay "generic". The PostgreSQL's package on OpenBSD already have a README file with all the OpenBSD specific instructions. You can find it in /usr/local/share/doc/pkg-readmes (or online version here: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/databases/postgresql/pkg/README-server?rev=1.23&content-type=text/x-cvsweb-markup ) Feel free to ask me directly if you have any questions. Regards, On Wed, Sep 13, 2017 at 02:00:33PM -0500, Paul Covello wrote: > Thanks for the response, Tom. I am cc’ing the OpenBSD port maintainer here just for visibility. > > Port maintainer: > > I am not a developer or even a DBA. I am just an end user learning to set up PostGresql on OpenBSD 6.1. After installing the package using pkg_add, I began to delve into the documentation at postgresql.org. > > I got to this section on starting the server: > > https://www.postgresql.org/docs/9.6/static/server-start.html > > > The documentation did not match my experience (postgresql did not start) which prompted me to file a postgresql bug report #14814 on the documentation. > > Specifically, the instructions on what to put in rc.local for openbsd in the documentation says this: > > if [ -x /usr/local/pgsql/bin/pg_ctl -a -x /usr/local/pgsql/bin/postgres ]; then > su -l postgres -c '/usr/local/pgsql/bin/pg_ctl start -s -l /var/postgresql/log -D /usr/local/pgsql/data' > echo -n ' postgresql' > fi > > However, after taking the time to troubleshoot: This is what winds up working: > > if [ -x /usr/local/bin/pg_ctl -a -x /usr/local/bin/postgres ]; then > su -l _postgresql -c '/usr/local/bin/pg_ctl start -s -l /var/postgresql/logfile -D /var/postgresql/data' > echo -n ' postgresql' > fi > > Knowing that it is openbsd policy to have service names begin with an _ (underscore) and believing that the path listed to the executable does not seem to match the hier man page on openbsd, I thought this might be a documentation bug. > > I want to save other users the time I spent figuring this out which is what brought me here. In Tom’s response to me below, he believes this to be a port issue. > > Thanks for looking into this! > > — Paul. > > > On Sep 13, 2017, at 8:54 AM, Tom Lane wrote: > > > > pfcovello@gmail.com writes: > >> In section 18.3. Starting the Database Server there are instructions for > >> starting the server on OpenBSD: > >> ... > >> However, there are several problems with this instruction. > > > > You seem to want us to adjust the community documentation to match > > someone's packaging of Postgres. We can't really track every random > > decision that packagers make; and if we tried, then the documentation > > would be inaccurate for installations built directly from source. > > > > Really, best practice for a packager who is modifying the default > > configuration like this is to also modify the copy of the documentation > > they ship, or at least make it very plain in a README file how their > > installation differs from the out-of-the-box defaults. > > > > In short, I think you've got a complaint for your packager here, > > not one for the PG community. > > > > regards, tom lane > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs