Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMFXU-0000ns-IQ for pgsql-novice@arkaria.postgresql.org; Mon, 21 Feb 2022 20:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nMFXT-0007qa-4r for pgsql-novice@arkaria.postgresql.org; Mon, 21 Feb 2022 20:44:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMFXS-0007nC-SJ for pgsql-novice@lists.postgresql.org; Mon, 21 Feb 2022 20:44:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMFXM-0007Ku-BY for pgsql-novice@postgresql.org; Mon, 21 Feb 2022 20:44:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21LKhwfU582712; Mon, 21 Feb 2022 15:43:59 -0500 From: Tom Lane To: BeeRich Lists cc: Submit Postgresql Novice Subject: Re: FATAL: no such database In-reply-to: References: Comments: In-reply-to BeeRich Lists message dated "Mon, 21 Feb 2022 15:24:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <582710.1645476238.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Feb 2022 15:43:58 -0500 Message-ID: <582711.1645476238@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk BeeRich Lists writes: > For some reason I cannot create a database. I use Sequel, Postico, and = psql, and all three won=E2=80=99t create a database. The first two write = the syntax for me, and they too return errors. Here is an example in psql= : > rich=3D# CREATE DATABASE alpha; > CREATE DATABASE > rich=3D# \c alpha; > FATAL: no such database: alpha > Previous connection kept Well, that's just odd. Do you have any nondefault extensions loaded into the database? I notice that the normal message for a missing database looks different: alpha=3D# \c alpha2 FATAL: database "alpha2" does not exist Previous connection kept and in fact the string "no such database" appears nowhere in the core Postgres code. So I'm not sure what's throwing that error, but I guess it must be some add-on code. BTW, the semicolon is superfluous, although I suspect that removing it won't change anything. regards, tom lane