pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Kevin Brannen <KBrannen@efji.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and Having Problems
Date: Wed, 17 Jul 2019 12:51:18 +0900
Message-ID: <4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com> (raw)
In-Reply-To: <MN2PR19MB2575AD6E648D9CA0EE926B51A4E00@MN2PR19MB2575.namprd19.prod.outlook.com>
References: <CY4PR1301MB22001D3FAAB3499C5D41DE23A9E50@CY4PR1301MB2200.namprd13.prod.outlook.com>
	<21255.1560973885@sss.pgh.pa.us>
	<CY4PR1301MB2200377D6725169DE4F2EFF8A9E50@CY4PR1301MB2200.namprd13.prod.outlook.com>
	<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>
	<CY4PR1301MB2200049B776A33C559EBA2AFA9E40@CY4PR1301MB2200.namprd13.prod.outlook.com>
	<8328.1561042535@sss.pgh.pa.us>
	<MN2PR19MB2575AD6E648D9CA0EE926B51A4E00@MN2PR19MB2575.namprd19.prod.outlook.com>

On 6/25/19 2:27 AM, Kevin Brannen wrote:
>> From: Tom Lane <tgl@sss.pgh.pa.us
> 
>> Brent Bates <BBates@langleyfcu.org> 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





view thread (13+ messages)

Message-ID: <4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com>
Permalink:  ../4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com/
Also on:    postgresql.org/message-id/4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ian.barwick@2ndquadrant.com, KBrannen@efji.com
  Subject: Re: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and Having Problems
  In-Reply-To: <4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com>
  References: <CY4PR1301MB22001D3FAAB3499C5D41DE23A9E50@CY4PR1301MB2200.namprd13.prod.outlook.com> <21255.1560973885@sss.pgh.pa.us> <CY4PR1301MB2200377D6725169DE4F2EFF8A9E50@CY4PR1301MB2200.namprd13.prod.outlook.com> <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> <CY4PR1301MB2200049B776A33C559EBA2AFA9E40@CY4PR1301MB2200.namprd13.prod.outlook.com> <8328.1561042535@sss.pgh.pa.us> <MN2PR19MB2575AD6E648D9CA0EE926B51A4E00@MN2PR19MB2575.namprd19.prod.outlook.com> <4fcfe727-fa3b-5518-0957-24f55c6d6dbd@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox