public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: BeeRich Lists <[email protected]>
Cc: Submit Postgresql Novice <[email protected]>
Subject: Re: FATAL: no such database
Date: Mon, 21 Feb 2022 15:43:58 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

BeeRich Lists <[email protected]> writes:
> For some reason I cannot create a database.  I use Sequel, Postico, and psql, and all three won’t create a database.  The first two write the syntax for me, and they too return errors.  Here is an example in psql:
> rich=# CREATE DATABASE alpha;
> CREATE DATABASE
> rich=# \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=# \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





view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: FATAL: no such database
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox