pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
database postgres not found
2+ messages / 2 participants
[nested] [flat]

* database postgres not found
@ 2023-02-01 10:33  Matthias Apitz <guru@unixarea.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Matthias Apitz @ 2023-02-01 10:33 UTC (permalink / raw)
  To: pgsql-general


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? 

Thanks

	matthias


-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: database postgres not found
@ 2023-02-01 11:54  Erik Wienhold <ewie@ewie.name>
  parent: Matthias Apitz <guru@unixarea.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Erik Wienhold @ 2023-02-01 11:54 UTC (permalink / raw)
  To: Matthias Apitz <guru@unixarea.de>; pgsql-general

> On 01/02/2023 11:33 CET Matthias Apitz <guru@unixarea.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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-02-01 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-02-01 10:33 database postgres not found Matthias Apitz <guru@unixarea.de>
2023-02-01 11:54 ` Erik Wienhold <ewie@ewie.name>

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