From: | Erik Wienhold <ewie(at)ewie(dot)name> |
---|---|
To: | Matthias Apitz <guru(at)unixarea(dot)de>, Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: database postgres not found |
Date: | 2023-02-01 11:54:18 |
Message-ID: | 866848204.104800.1675252458428@office.mailbox.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> On 01/02/2023 11:33 CET Matthias Apitz <guru(at)unixarea(dot)de> wrote:
>
> Hello,
>
> I've a problem with a PostgreSQL 12.x server not setup or managed by me. that
> the database 'postgres' is not found:
>
> $ psql -Upostgres postgres
> psql: error: ERROR: no such database: postgres
>
> but the database is there as a SELECT shows:
>
> $ psql -Upostgres lbs_lbsoclc01_dev_r1
> psql (12.11)
> Type "help" for help.
>
> lbs_lbsoclc01_dev_r1=# select * from pg_database where datname = 'postgres' ;
> oid | datname | datdba | encoding | datcollate | datctype | datistemplate | datallowconn | datconnlimit | datlastsysoid | datfrozenxid | datminmxid | dattablespace | datacl
> -------+----------+--------+----------+-------------+-------------+---------------+--------------+--------------+---------------+--------------+------------+---------------+--------
> 14344 | postgres | 10 | 6 | en_US.UTF-8 | en_US.UTF-8 | f | t | -1 | 14343 | 479 | 1 | 1663 |
> (1 row)
>
> What does this mean?
Error message "no such database: postgres" is not from Postgres but likely from
PgBouncer. This means the database is not configured in PgBouncer for clients
to connect to.
--
Erik
From | Date | Subject | |
---|---|---|---|
Next Message | Matthias Apitz | 2023-02-01 12:24:34 | moving a database to a new 15.1 server |
Previous Message | jian he | 2023-02-01 10:36:59 | 38.10.6. Composite-Type Arguments C-language function code demo works for int, but not for numeric. |