From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | BeeRich Lists <bee(dot)lists(at)gmail(dot)com> |
Cc: | Submit Postgresql Novice <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: FATAL: no such database |
Date: | 2022-02-21 20:43:58 |
Message-ID: | 582711.1645476238@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
BeeRich Lists <bee(dot)lists(at)gmail(dot)com> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-02-22 00:54:36 | Re: FATAL: no such database |
Previous Message | BeeRich Lists | 2022-02-21 20:24:46 | FATAL: no such database |