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 1hnayZ-0003IF-2I for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2019 03:51:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnayW-0002py-Rc for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2019 03:51:28 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnayW-0002nS-Hc for pgsql-general@lists.postgresql.org; Wed, 17 Jul 2019 03:51:28 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnayS-0004Ab-OT for pgsql-general@lists.postgresql.org; Wed, 17 Jul 2019 03:51:27 +0000 Received: by mail-pl1-x643.google.com with SMTP id t14so11179801plr.11 for ; Tue, 16 Jul 2019 20:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lBmKp7GgJ823T+6nZBc+wg4n+jB3G1/zIQzCcLOMqmA=; b=rxqs9j8QQqac51mfXblNTYVI7luN3sGSG/nDpfvT32N1GZ6vK1d3S2v7lSby0mWO5n OhkXi2/VfrejKpvZGIqphvz+xS5ygsikTmN3su95tDYyyi0VILfvQdzYrBIfByL4MutS w1XTpc3A+tTkTtINKRhiX8BsaUgo+tBeniqjHPAYK+mpDMrOA+iWAdPhJo6omAJditU0 AghxW+7o4aUIqDCPT/3FYuRULSYAmY6HLJXgfho7uoRvLqf7Kl9M450z70RaaAOC+hjL Dmn834VAEYeY+x+NTzbCLn9tVwlPOrHl7r+VhxF9DbQGscV7LHIeweX78hXRuxmS4WDu O5eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lBmKp7GgJ823T+6nZBc+wg4n+jB3G1/zIQzCcLOMqmA=; b=iirFjjmXaq0bY+XvYZsCac0TecriIJ6jcbs/Q5t2WcmdX/s2JcToAjjMFGRXu8TwgE FEmVaADsz+Wm8n5n5tvEtQTi12VDfloVzJWizvTRpLj2Y1yWjWalZ6QV1vLvLl+eeJmV JTKz7UJUzPDg9BPZaF1XQM0vgxOF3T7GMb/CKKHLcdNj0rniSQ8q7hal0H6ALAjV+B/m EDadVhCD68Mo6Yw6ky56/K97jIB/uGS9FGH1BJZubFyytW60IRgjmXVPkn/LQi8WtLHC LR/d/svKjOn+5i+8jCpD2OQiMcxJU+qnJAr4LOogwrLPmotPi3C0qyLPKdMR8/fctuDY dfMA== X-Gm-Message-State: APjAAAUTaV1k3wy3YHkTy4lZamB3yLj65QyhG41gd1AOpINeI3PvHSVa uyOncvY/TugccZ5jG/e0ShhFW5nBVedjRzVYuBZsBn3A/PA/vNBfXeDOjx/GLaUTZVoMJecptHz ht0AhKg7yqyfMF9xnFZhgBgxGSYOqS3C750JZCbpIXd+nJ23EiAsdZwxWauTeVqcgPFad/YE+34 amu6Qw5ioM1jIEnD0tT/iS X-Google-Smtp-Source: APXvYqzYQ8beDsU0LTVVnRxb/fiZe6LYadisTaexi8GAkRM3XtF7nx12L82vluxkhcSDlvVYUxFIig== X-Received: by 2002:a17:902:9307:: with SMTP id bc7mr39018689plb.183.1563335481467; Tue, 16 Jul 2019 20:51:21 -0700 (PDT) Received: from osaka.octopusnet (p274154-ipngn12401marunouchi.tokyo.ocn.ne.jp. [153.201.73.154]) by smtp.gmail.com with ESMTPSA id x9sm465688pgp.75.2019.07.16.20.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 20:51:21 -0700 (PDT) Subject: Re: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and Having Problems To: Kevin Brannen , "pgsql-general@lists.postgresql.org" References: <21255.1560973885@sss.pgh.pa.us> <23419.1560977391@sss.pgh.pa.us> <8e91d3bb-bdfd-5394-02a0-5288317f7e61@gmail.com> <87blyt18mm.fsf@news-spur.riddles.org.uk> <83665778.11249317.1561022638471@mail.yahoo.com> <8328.1561042535@sss.pgh.pa.us> From: Ian Barwick Message-ID: <4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com> Date: Wed, 17 Jul 2019 12:51:18 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/25/19 2:27 AM, Kevin Brannen wrote: >> From: Tom Lane >> Brent Bates writes: >>> I found the problem. I cleared everything out and started from scratch, then slowly added my changes back to the configuration files. The problem was in the postgresql.conf. At the bottom of the file I had uncommented all the โ€˜includeโ€™ lines, so they looked like this: >>> include_dir = '' # include files ending in '.conf' from > >> Ah-hah! I wonder if we should disallow empty values for these GUCs? >> And/or put in some kind of test for recursive opening of the same config file? I don't think it'd occurred to anyone that it's this easy to get the code to try to do that. > > > I would encourage this. ๐Ÿ˜Š I know on one of my early installs some time back I accidentally did: > > data_directory = '' > and had a devil of a time figuring out why the postmaster wouldn't start (in > fact it was you Tom that pointed me in the right direction to eventually find > the misconfiguration). So I think it would be a great idea to add checks for > empty strings in places where that's a problem. An unset value (as in the > config is commented out) can be OK as any defaults will be used, but to set > some values to the empty string just hurts and it would be a help to new > users, or even those of us who make typos, ๐Ÿ˜Š to get better error messages so > we can fix the problem faster on our own I've submitted fixes for the empty include directives (which are a special case), I'll see if I can have a look at these ones too. Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services