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 1hnata-00037x-3W for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2019 03:46:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnatY-0001LR-Vi for pgsql-general@arkaria.postgresql.org; Wed, 17 Jul 2019 03:46:20 +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 1hnatY-0001J8-KQ for pgsql-general@lists.postgresql.org; Wed, 17 Jul 2019 03:46:20 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnatV-00047a-Mr for pgsql-general@lists.postgresql.org; Wed, 17 Jul 2019 03:46:20 +0000 Received: by mail-pg1-x544.google.com with SMTP id s1so4141085pgr.2 for ; Tue, 16 Jul 2019 20:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TXJx9t0XO9epDjs5UBHP8rq+nvIkQSKQ+EZg8pU5210=; b=bJKFuVornLmlDPqbxIXzggyIidIJROLYfqJTwYz1E2cSSXAKpCcbwwxKRYQOo7DXxK OBEN6awloWJJNFAr1MaoZCKWIsz7aYvC6GHqEWQrcxtwGIyy9dTUwxy8xbdszae3VD5c 6b4VssAVTlLQrQ6m9vlxRL81oBCgGGW5mhk38Rsyc2WINk+a6EaoNaqjRBl0aHZGq+2m LN4UB9WqYfnIrlHr6Lq22mdIW1FIQKtXyCCs9Ds51YiF8RUk4+W2T5PRF8hJ9GyAYKJf UO86K+KezFPiSMG/jRaAVMjk1fFsuJeGaYirvfhNusjgYlBJaIJUEledBiRq1cDubL8M kBiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TXJx9t0XO9epDjs5UBHP8rq+nvIkQSKQ+EZg8pU5210=; b=RwF85VmjT3S0ZZz6clJOa6bs1rlDQX+dpADB1ekWgDjnj9NGV3+EWDCbs5i6QK1tSk 39JeyEkawiNRL0YSdISQ+ewTWd4Q8ifuALgnLmsqoTDxtCYoMwQPVDphBg0alWpyHegE KsHyZUuzalVtDBKU/WsBqdGxw80flPozTnQzGD3wonMDK2d98wklrSV9ifTWLe8VFQ0t yz4vByafO0/ICUWe5MMR3ra+gmX2Ffo29hN4vMTJR91tHybG9gmNQi5oSfl2y29gjyT3 cRD92guzt3Sk6hpQcvSSv+MUlmW4l3XcLnwIlngr7mcPam1OkwNf9Ed/MuC5IqTZHFtM ebNA== X-Gm-Message-State: APjAAAWoRQJn0IH5OPKYL6DqvdBgNHOsucSNOqcnyriAjLQwJ/LoFf8V NZPmHKGHF5Obcu+quknOP25Go6f7G+Co4SOvh94Jxti7dyAC7kd0uX5I2R8DvS19X3DNiXvjMxj +fkKJVcQjnoQAaKx5Yl2+2mQoIJkNqI27/yWcM6gO3wcX86jW4vvVB63g5AR881OYb2OmMHPu4b dOTBzudDE238OYO1JCkPRH X-Google-Smtp-Source: APXvYqzzQ2XAj5fkZnxgg8c1/+HuwtPCYX6UkwmtGoUIgFCu3BZGpwj1tu7DBj5Wga6TIs0Y6808+A== X-Received: by 2002:a63:6fcf:: with SMTP id k198mr37820581pgc.276.1563335174381; Tue, 16 Jul 2019 20:46:14 -0700 (PDT) Received: from osaka.octopusnet (p274154-ipngn12401marunouchi.tokyo.ocn.ne.jp. [153.201.73.154]) by smtp.gmail.com with ESMTPSA id y128sm34009418pgy.41.2019.07.16.20.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 20:46:13 -0700 (PDT) Subject: Re: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and Having Problems From: Ian Barwick To: Tom Lane , Brent Bates Cc: "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> <249c7bcb-6ddb-1783-154f-d66ae5d7f48f@2ndquadrant.com> Message-ID: <1a56ce80-ee53-f734-c8c6-f9596fc73b89@2ndquadrant.com> Date: Wed, 17 Jul 2019 12:46:11 +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: <249c7bcb-6ddb-1783-154f-d66ae5d7f48f@2ndquadrant.com> 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/21/19 12:34 AM, Ian Barwick wrote: > On 6/20/19 11:55 PM, Tom Lane wrote: >> 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 >>>                                          # a directory, e.g., 'conf.d' >>>          include_if_exists = ''          # include file only if it exists >>>          include = ''                    # include file >> >>> The first one is what caused all the headaches.  I recommented out these lines and everything works now.  Thanks for all the quick suggestions. >> >> 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. > > Funnily enough I was looking at that code the other day for totally other > reasons and vaguely wondered if there was any potential for circular > inclusions and the like. There's a check for nesting depth, but I'm not > sure what else. I could take a look in the next few days if no-one else > wants to. Some proposed fixes submitted here: https://www.postgresql.org/message-id/8c8bcbca-3bd9-dc6e-8986-04a5abdef142%402ndquadrant.com Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services