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 1iefSc-0007Db-Ei for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 13:21:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iefSb-0005hi-7D for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 13:21:53 +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 1iefSa-0005ha-T6 for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 13:21:52 +0000 Received: from forward103p.mail.yandex.net ([77.88.28.106]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iefSY-00078l-LV for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 13:21:52 +0000 Received: from mxback16j.mail.yandex.net (mxback16j.mail.yandex.net [IPv6:2a02:6b8:0:1619::92]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 9992E18C1BED for ; Tue, 10 Dec 2019 16:21:48 +0300 (MSK) Received: from iva6-8a2c25f3b3d2.qloud-c.yandex.net (iva6-8a2c25f3b3d2.qloud-c.yandex.net [2a02:6b8:c0c:759a:0:640:8a2c:25f3]) by mxback16j.mail.yandex.net (mxback/Yandex) with ESMTP id HsaAXc6TAD-LmomCd8Q; Tue, 10 Dec 2019 16:21:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1575984108; bh=S3PJ7k6rvzcX+t79u/PzmtW/Fil5Eco9JAhJ/HPpm7U=; h=To:Subject:From:Date:Message-Id; b=l4ZCg2sz+sUknmV3weBXxpSy42nj12CKic3dW1m6DCdWp5KZmsRRsQ9EAL/JOOMP8 BkS6cOPwYDetTnQ0OqtZcfQoL4o1g4iOB0h+UqMkmA1nQae6e++FH/nXjGDXhdPeeN pvFDi4hDHS+kO/P17WflTPZ6NCtvUMrKRVJTTRzk= Authentication-Results: mxback16j.mail.yandex.net; dkim=pass header.i=@ya.ru Received: by iva6-8a2c25f3b3d2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ZtFvjOzZ3G-LlTixdlJ; Tue, 10 Dec 2019 16:21:47 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: PGUSER and initdb Message-Id: Date: Tue, 10 Dec 2019 16:21:46 +0300 To: "pgsql-generallists.postgresql.org" X-Mailer: Apple Mail (2.3601.0.10) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PGUSER doesn't work with initdb and pg_ctl initdb. Lets explain, where = this can be important. For instance in MacOS the most convenient way to = manage PostgresQL is homebrew.=20 To install PostgresQL: brew install postgresql To upgrade: brew upgrade postgresql this will upgrade soft and to upgrade DB=20 brew postgresql-upgrade-database The later command do: install previous version of PostgresQL, move = postgresql dir to postgesql.old, run pg_upgrade and so on. Convenient. But this command don't have option to define name of superuser. The only = variant to set name off superuser is to use PGUSER environment variable. = But PGUSER understand only pg_upgrade, but not initdb.=