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 1iPLU7-0004aa-Pe for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 29 Oct 2019 07:00:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iPLU6-0006sS-Lo for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 29 Oct 2019 07:00:06 +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 1iPLU6-0006sL-D4 for pgsql-pkg-debian@lists.postgresql.org; Tue, 29 Oct 2019 07:00:06 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPLU4-0005Xh-6o for pgsql-pkg-debian@postgresql.org; Tue, 29 Oct 2019 07:00:06 +0000 Received: by mail-lj1-x242.google.com with SMTP id t5so6185263ljk.0 for ; Tue, 29 Oct 2019 00:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=qZ5ZJXHm8lJ+Y9Q2tZfz/p2yS0Oswg9JFMxeoZ+W3TE=; b=Lh8C2J7BQBeLHAHzyiQDzakPTEo8dawLN95bBcZMyRMFXopX9I3fU7/YtnUYNpZdb/ pKa7qZ3wc4ZdXrRM0GEbj56QWENtL6laHx9s6wiKCMrNglL6AxdFYTbvUdCLakCWLgNq d5rJ9u5E+mVimgOtyWNoxzMjJpdD9Mp3NheREQ4veo0XwPt62riV1Mqj30/IwF9XxI6Y +15xnE1AcQ4PR3MAmx2NRZ8wUwtEKVk9AFmZLcx+4rFa1pcmVL2aA+1IGb7XL/e4xdbV B8Aodi2OoilWEy6M7kmeeG4icZ674P50bjuJCfS89BQdTl1zWRArgImzNV7R6eYO2mUr bwOg== 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; bh=qZ5ZJXHm8lJ+Y9Q2tZfz/p2yS0Oswg9JFMxeoZ+W3TE=; b=QdyKJPdQ4n5H1RwdZVzdvs3oUFW3HkeF50KMUDHveoAg2VfwYMqSZtNR61rNUyimr7 LwsST/qj9fk8/RalxvFUcDd5UTRzMUGOjeVdy9Wke0a0tRs9IcE4myk8Ds1/uK9jnoyM RdNFC2B1fC+jv8Lny4DsnmkOPfJHUyI9nLHcd83Am6c+k7FkxbWhK7FO08XDe4f13lph I/vRAHXMGgJbwlWnZieJJAsqSs7MEYZQETUq/hOvYNMpm1YLzjKhrT1iO84thdMzpF74 UJJzZXY9rPr/9kp0Ng+SLLkoBk2SR9irg2JCdyvPQIkd7iPAtT9iXnqK6NvjH2dgqWp2 tISA== X-Gm-Message-State: APjAAAXpFguUj4dz8a/WfO+NTb3OsQI2SDRMLqMCCwrH2sCDy7I/2fvn rfiWXwayPLN0xlHIeQr9R0A= X-Google-Smtp-Source: APXvYqzGOCNaB6S2jDRbMt2escBTHaK3NFW0gYG+1tmiREvlW6x4GB2UiPEZX5WsxnSEbQAw9fjo5w== X-Received: by 2002:a05:651c:1066:: with SMTP id y6mr1260972ljm.96.1572332402295; Tue, 29 Oct 2019 00:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.4.5]) by smtp.gmail.com with ESMTPSA id t10sm5530695ljt.68.2019.10.29.00.00.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Oct 2019 00:00:01 -0700 (PDT) Subject: Re: Confusing message on server install To: pgsql-pkg-debian@postgresql.org, Christoph Berg References: From: Alexander Lakhin Message-ID: <5df468f5-243e-f1b6-8944-27ef94f41648@gmail.com> Date: Tue, 29 Oct 2019 10:00:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------18CAA82DB85130B91B7E6B2D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------18CAA82DB85130B91B7E6B2D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello, 18.10.2019 13:19, Alexander Lakhin wrote: > While installing the postgresql-12 server package on Debian Buster I see > the following output: > # apt-get install postgresql-12 > ... > Creating new PostgreSQL cluster 12/main ... > /usr/lib/postgresql/12/bin/initdb -D /var/lib/postgresql/12/main > --auth-local peer --auth-host md5 > ... > performing post-bootstrap initialization ... ok > syncing data to disk ... ok > > Success. You can now start the database server using: > >     pg_ctlcluster 12 main start > So I see the message "Success. You can now start the database server > using:", but in fact the server is running. Please look at the proposed improvement that suppresses this confusing message. Best regards, Alexander --------------18CAA82DB85130B91B7E6B2D Content-Type: text/x-patch; name="pg_createcluster.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pg_createcluster.diff" --- a/pg_createcluster 2019-07-09 16:57:45.000000000 +0300 +++ b/pg_createcluster 2019-10-29 06:16:00.935081461 +0300 @@ -351,7 +351,9 @@ } else { print "Creating new PostgreSQL cluster $version/$cluster ...\n"; # ask initdb to print a different cluster start command (Debian patch) - $ENV{CLUSTER_START_COMMAND} = "pg_ctlcluster $version $cluster start"; + if (!defined $ENV{CLUSTER_START_COMMAND}) { + $ENV{CLUSTER_START_COMMAND} = "pg_ctlcluster $version $cluster start"; + } init_db $version, $datadir, $owneruid, $ownergid, \@initdb_opts_from_cli; $newcluster = 1; } --------------18CAA82DB85130B91B7E6B2D Content-Type: text/x-patch; name="maintscripts-functions.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="maintscripts-functions.diff" --- a/maintscripts-functions 2018-09-20 17:02:06.000000000 +0300 +++ b/maintscripts-functions 2019-10-29 07:41:55.892583740 +0300 @@ -86,6 +86,7 @@ create=$(pg_conftool /etc/postgresql-common/createcluster.conf show -bs create_main_cluster || :) if [ -z "$2" ] && [ "$create" != "off" ]; then set_system_locale + export CLUSTER_START_COMMAND="" pg_createcluster -u postgres $VERSION main || echo "Error: could not create default cluster. Please create it manually with --------------18CAA82DB85130B91B7E6B2D Content-Type: text/plain; charset=UTF-8; name="initdb-startup-message" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="initdb-startup-message" QXV0aG9yOiBDaHJpc3RvcGggQmVyZyA8bXlvbkBkZWJpYW4ub3JnPgpEZXNjcmlwdGlvbjog RGViaWFuLXNwZWNpZmljIGNsdXN0ZXIgc3RhcnR1cCBtZXNzYWdlIGZyb20gaW5pdGRiCkZv cndhcmRlZDogTm8sIERlYmlhbiBzcGVjaWZpYwoKLS0tIGEvc3JjL2Jpbi9pbml0ZGIvaW5p dGRiLmMKKysrIGIvc3JjL2Jpbi9pbml0ZGIvaW5pdGRiLmMKQEAgLTMzNjEsOSArMzM2MSwx MCBAQAogCS8qIHRyYW5zbGF0b3I6IFRoaXMgaXMgYSBwbGFjZWhvbGRlciBpbiBhIHNoZWxs IGNvbW1hbmQuICovCiAJYXBwZW5kUFFFeHBCdWZmZXIoc3RhcnRfZGJfY21kLCAiIC1sICVz IHN0YXJ0IiwgXygibG9nZmlsZSIpKTsKIAotCXByaW50ZihfKCJcblN1Y2Nlc3MuIFlvdSBj YW4gbm93IHN0YXJ0IHRoZSBkYXRhYmFzZSBzZXJ2ZXIgdXNpbmc6XG5cbiIKKwlpZiAoIWdl dGVudigiQ0xVU1RFUl9TVEFSVF9DT01NQU5EIikgfHwgc3RybGVuKGdldGVudigiQ0xVU1RF Ul9TVEFSVF9DT01NQU5EIikpID4gMCkKKwkJcHJpbnRmKF8oIlxuU3VjY2Vzcy4gWW91IGNh biBub3cgc3RhcnQgdGhlIGRhdGFiYXNlIHNlcnZlciB1c2luZzpcblxuIgogCQkJICIgICAg JXNcblxuIiksCi0JCSAgIHN0YXJ0X2RiX2NtZC0+ZGF0YSk7CisJCQkgICBnZXRlbnYoIkNM VVNURVJfU1RBUlRfQ09NTUFORCIpID8gZ2V0ZW52KCJDTFVTVEVSX1NUQVJUX0NPTU1BTkQi KSA6IHN0YXJ0X2RiX2NtZC0+ZGF0YSk7CiAKIAlkZXN0cm95UFFFeHBCdWZmZXIoc3RhcnRf ZGJfY21kKTsKIAo= --------------18CAA82DB85130B91B7E6B2D--