Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qbnpM-00D41V-RJ for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Aug 2023 19:59:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qbnpK-009ZNu-8l for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Aug 2023 19:59:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qbnpJ-009ZNg-Uj for pgsql-bugs@lists.postgresql.org; Thu, 31 Aug 2023 19:59:37 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qbnpB-002CL9-A8 for pgsql-bugs@lists.postgresql.org; Thu, 31 Aug 2023 19:59:36 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4948460002; Thu, 31 Aug 2023 19:59:26 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------2lcr30seF3CrDqE1mBU0E6Kt" Message-ID: <1442dafa-8c91-fa6d-8721-78349c4e6bcb@dunslane.net> Date: Thu, 31 Aug 2023 15:59:23 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: BUG #18078: createdb not working To: Orhan Punar , Jeff Janes Cc: pgsql-bugs@lists.postgresql.org References: <18078-462b59fa711af3b4@postgresql.org> Content-Language: en-US From: Andrew Dunstan In-Reply-To: X-GND-Sasl: adsend@dunslane.net List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------2lcr30seF3CrDqE1mBU0E6Kt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2023-08-31 Th 13:21, Orhan Punar wrote: > Have you tried the command in ubuntu 22.04.3 LTS version? Yes: postgres@da3e702c6a02:~$ pg_ctlcluster 15 main start postgres@da3e702c6a02:~$ psql -l                                              List of databases    Name    |  Owner   | Encoding | Collate |  Ctype  | ICU Locale | Locale Provider |   Access privileges -----------+----------+----------+---------+---------+------------+-----------------+-----------------------  postgres  | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            |  template0 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            | =c/postgres          +            |          |          |         |         | |                 | postgres=CTc/postgres  template1 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            | =c/postgres          +            |          |          |         |         | |                 | postgres=CTc/postgres (3 rows) postgres@da3e702c6a02:~$ createdb blurfl postgres@da3e702c6a02:~$ psql -l                                              List of databases    Name    |  Owner   | Encoding | Collate |  Ctype  | ICU Locale | Locale Provider |   Access privileges -----------+----------+----------+---------+---------+------------+-----------------+-----------------------  blurfl    | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            |  postgres  | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            |  template0 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            | =c/postgres          +            |          |          |         |         | |                 | postgres=CTc/postgres  template1 | postgres | UTF8     | C.UTF-8 | C.UTF-8 | | libc            | =c/postgres          +            |          |          |         |         | |                 | postgres=CTc/postgres (4 rows) postgres@da3e702c6a02:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy It's not clear what you're doing wrong, but there does not appear to be any bug. cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------2lcr30seF3CrDqE1mBU0E6Kt Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2023-08-31 Th 13:21, Orhan Punar wrote:
Have you tried the command in ubuntu 22.04.3 LTS version?


Yes:


postgres@da3e702c6a02:~$ pg_ctlcluster 15 main start
postgres@da3e702c6a02:~$ psql -l
                                             List of databases
   Name    |  Owner   | Encoding | Collate |  Ctype  | ICU Locale | Locale Provider |   Access privileges   
-----------+----------+----------+---------+---------+------------+-----------------+-----------------------
 postgres  | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            |
 template0 | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            | =c/postgres          +
           |          |          |         |         |            |                 | postgres=CTc/postgres
 template1 | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            | =c/postgres          +
           |          |          |         |         |            |                 | postgres=CTc/postgres
(3 rows)

postgres@da3e702c6a02:~$ createdb blurfl
postgres@da3e702c6a02:~$ psql -l
                                             List of databases
   Name    |  Owner   | Encoding | Collate |  Ctype  | ICU Locale | Locale Provider |   Access privileges   
-----------+----------+----------+---------+---------+------------+-----------------+-----------------------
 blurfl    | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            |
 postgres  | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            |
 template0 | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            | =c/postgres          +
           |          |          |         |         |            |                 | postgres=CTc/postgres
 template1 | postgres | UTF8     | C.UTF-8 | C.UTF-8 |            | libc            | =c/postgres          +
           |          |          |         |         |            |                 | postgres=CTc/postgres
(4 rows)

postgres@da3e702c6a02:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy


It's not clear what you're doing wrong, but there does not appear to be any bug.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------2lcr30seF3CrDqE1mBU0E6Kt--