i have problem with connecting to database via psql. I get this error:
postgres@server:/var/lib/pgsql # psql -d aisgdmp2
psql: error: FATAL: database "aisgdmp2" does not exist
DETAIL: The database subdirectory "pg_tblspc/16385/PG_13_202007201/16386" is missing.
postgres@server:/var/lib/pgsql #
But when I connect to posgtres and list the db's, the aisgdmp2 db exist...
postgres@server:/var/lib/pgsql # psql
psql (13.5)
postgres=# \l
DB list
Name | Owner | Code | Collation | CType | Privileges
-----------+----------+----------+-------------+-------------+-----------------------
aisgdmp2 | aisg | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 | =Tc/aisg +
| | | | | aisg=CTc/aisg
postgres | postgres | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 |
template0 | postgres | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(4 rows)
postgres=#
Any idea where is the problem? The database was running in the past but has been down for the past two months.