Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr4Y-0001GZ-Q8 for pgsql-docs@arkaria.postgresql.org; Thu, 09 May 2019 21:59:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOr4X-0000QN-Gd for pgsql-docs@arkaria.postgresql.org; Thu, 09 May 2019 21:59:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr4X-0000QG-1G for pgsql-docs@lists.postgresql.org; Thu, 09 May 2019 21:59:25 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr4P-0005OX-Cm for pgsql-docs@lists.postgresql.org; Thu, 09 May 2019 21:59:23 +0000 Received: by mail-qt1-x842.google.com with SMTP id t1so4335903qtc.12 for ; Thu, 09 May 2019 14:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=6FD8hdt04UBP/Nmo7eZrUew/9Jt/FOUklVYQMoljwP4=; b=XzUH4M7tpjBO12948IuBnZ612YYi8kpNko2e/x3hsvlTJVMLcqzyF9/Uqa/prOn8j5 IFB21zTAHvofJTsbbd4rKiDn7CaA8Aw6DskaDOH7nFStWcRH1AyeuYCZ6v9AEVUj8Hll iUZ3mZAZAFzzaMhjBkRR6s3DT+dyN2xMn/g5VYhNyqn0BW6POVqTOIW8jnW6VNxTKyUI J8zFlGpxuvxjiCP1ok1pZTnl5/CCuG51vHSkJFrYzJyTB4oyZyh1pgqBC6DdSEUnFifc cM8yb5fuIGt/atmsqMCY7UhWuZe6UjitAS5n1/FSjA08HmKYvvwFDUJ9XJ3Oc7/WFkDe NHZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=6FD8hdt04UBP/Nmo7eZrUew/9Jt/FOUklVYQMoljwP4=; b=Bk1VvUQZDcLfqXndRAPBngDVekKkHOctGorqJ4alqvD6xr+p11ZvfzZAsFSmZK+jh7 ImdBrtLZrkmMmgiALhooxg8ccfJJtQ7ijp6/52rlUkpN8DbPQplv9VjGOHqbPepACIw1 LeHgutZr5Kx5uZGKfIApFJ3pAkv/ZwicUmz31kho5nD/RB/HkaYEs6whpYgLV9eZDXd4 yp5ZHcY1BuI6zp/6Iph5H4utWr1QFww5ectQp5qri8Kj5ZpTI8Q8pgn1EVxZpwV0MkKM YxE6/COQNkpFWNHELCcJ8Bxg6CT3KCH6MHd0LD/F6Gnt/+hVx30Jz1zXbjNcY/AFPh74 O68Q== X-Gm-Message-State: APjAAAUDcLT1jFB4HgHZwL9Wim3kSjoqadZcOuEKEGyainQ6D6pphZIs mvQzSqtgVcHtaZl6zq59NJgzmpUpZJ8MM0qIHZXPqrp9/SfmIaECkyJQ5krxEl7XfEDmGtDS6KG a4PDvnxh3t4gYRJxjPkJHgHQoYRLZ06RzamYjdXoAp7oE+eJZHu1RqngI4vvFTQu7Ec0OiChdHt 6eKKyzf8UDLA== X-Google-Smtp-Source: APXvYqxOCafL1Lv8mNN1XPyNhECP6bAVmzhFUhgOjA+2wjQphMHS9aurDIaLK93U64JlMpaSOG45bw== X-Received: by 2002:ac8:298d:: with SMTP id 13mr6063571qts.174.1557439156392; Thu, 09 May 2019 14:59:16 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h62sm1587089qkd.92.2019.05.09.14.59.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 14:59:15 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 9CFEC120FE1; Thu, 9 May 2019 17:59:12 -0400 (-04) Date: Thu, 9 May 2019 17:59:12 -0400 From: Alvaro Herrera To: Bruce Momjian Cc: jonas@morfosia.com, pgsql-docs@lists.postgresql.org Subject: Re: Minor improvement for creating directory structure Message-ID: <20190509215912.GA24114@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190509212132.u4znpcgomcb7bvpp@momjian.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-May-09, Bruce Momjian wrote: > On Wed, May 8, 2019 at 07:40:16AM +0000, PG Doc comments form wrote: > > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/10/install-short.html > > Description: > > > > 1) > > $ mkdir /usr/local/pgsql/data > > mkdir: cannot create directory ‘/usr/local/pgsql/data’: No such file or > > directory > > My docs say: > > -p, --parents > no error if existing, make parent directories as needed > > While I can see the value of "make parent directories as needed", having > it do "no error if existing" could be bad. Why? initdb is going to fail anyway if it contains anything. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services