Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsDbb-0000Za-Ip for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Sep 2017 19:45:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsDbZ-0007Zc-UL for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Sep 2017 19:45:49 +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 1dsCtt-0004n2-7B for pgsql-bugs@postgresql.org; Wed, 13 Sep 2017 19:00:41 +0000 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dsCtp-0001f9-Q5 for pgsql-bugs@postgresql.org; Wed, 13 Sep 2017 19:00:39 +0000 Received: by mail-it0-x243.google.com with SMTP id o200so812037itg.1 for ; Wed, 13 Sep 2017 12:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=QG1IHxyaxQq13fZ6Aijxlhn7i3Q+bB4RFicXUyetw7o=; b=NjHvv8vcZs2k8x39MATfviPh2Hmik8yZi4F0mMmtjLC2U8Inx4nv8nNgjbVg+r/VSp o65kI2SGLF+NQd01cDoTcLNfe1ZE0QM4VwuQTimc2gEcVEcdLjtjlKP4KAxmA4uR3AnZ vHz+1Mo+BG5FBniCipL4cF/P//Qivq/nm8RftZf2gZ7BZGqj8/1tzNhwhHmG3X3IH9M2 HoS17amir8W7f/2mlEhogfS4KY/N6OIN4jzOItfFflG0dk5dJmnVPcVX08sx1NVVp1Ob IPcJpo1DoGJuWwQb6FkZeJxjNXGnIrnxlpj6NtcorZ8/IPxPej6O5khHvVEk72MQzqOQ Ta1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=QG1IHxyaxQq13fZ6Aijxlhn7i3Q+bB4RFicXUyetw7o=; b=Igs3Y+FPlMTmArLQPNROW3xV5t3z+y+9CvnbiBcymXWZQ9JMzv+Eyp9F0vGu+XqxVx x5kFu9BNBco+QvcDjvC8t89gQ3wQhSjVl6WBued19QCRE56RWksw5i/vNtZlrEkmBm1I D2uRrBaxjlf0WYKLN8UJBEb/aE9sU1y4+G0xv/bASVgnq5oPWOC7LBSeCet5iTbrO1wt HwjmZBGOc+E2gBysVi56ZOVs8rNySpdnOFgt9vSltLGulTThgossFI6V4hrKiagE19zb dU05Gz/2+o0tReQOECV9Kf/OhIMjkAZgAmO1vwwCoVTYKnzZolKf8qP4ocPo0osp7VkK ph/g== X-Gm-Message-State: AHPjjUjmurInVWHT3LXjqYrg6W17oi6KeN0+FtSppeP4d1N5aFVIowkC GH5HgrI1K1BkPg== X-Google-Smtp-Source: AOwi7QClnfLiitZhkr8as/OEvFBPy6pGSCsDl26elCndZff7Y+cF32ak1EKjHUiJwbRFOaVWhE/22w== X-Received: by 10.36.214.130 with SMTP id o124mr6455158itg.51.1505329236643; Wed, 13 Sep 2017 12:00:36 -0700 (PDT) Received: from [192.168.1.10] (c-73-51-222-160.hsd1.in.comcast.net. [73.51.222.160]) by smtp.gmail.com with ESMTPSA id p193sm1182986itg.0.2017.09.13.12.00.35 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 12:00:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: BUG #14814: Documentation errors for OpenBSD From: Paul Covello In-Reply-To: <10573.1505310888@sss.pgh.pa.us> Date: Wed, 13 Sep 2017 14:00:33 -0500 Cc: pgsql-bugs@postgresql.org, pea@openbsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3258FA55-8F17-4DF8-BDCB-9E2A6D36F6E6@gmail.com> References: <20170913074811.25638.69564@wrigleys.postgresql.org> <10573.1505310888@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3124) 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 Thanks for the response, Tom. I am cc=E2=80=99ing the OpenBSD port maintai= ner 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) wh= ich 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 th= e 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/postgre= sql/log -D /usr/local/pgsql/data' echo -n ' postgresql' fi However, after taking the time to troubleshoot: This is what winds up work= ing: 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 _ (un= derscore) and believing that the path listed to the executable does not see= m to match the hier man page on openbsd, I thought this might be a document= ation bug. I want to save other users the time I spent figuring this out which is what= brought me here. In Tom=E2=80=99s response to me below, he believes this = to be a port issue. Thanks for looking into this!=20 =E2=80=94 Paul. > On Sep 13, 2017, at 8:54 AM, Tom Lane wrote: >=20 > 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. >=20 > 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. >=20 > 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. >=20 > In short, I think you've got a complaint for your packager here, > not one for the PG community. >=20 > regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs