postgres=# SELECT spcname FROM pg_tablespace;
spcname
--------------
pg_default
pg_global
sym_m_data1
sym_m_index1
(4 rows)
postgres=#
Thanks,
But i can see the below in server.
postgres@postgresdb-uat-postgresql-5b9fb67fcd-dbpb4:~/data/pgdata/postgresql-db/pg_tblspc$ ls -ltr
total 0
lrwxrwxrwx. 1 postgres postgres 24 Dec 5 15:21 16386 -> /var/lib/postgresql/data
lrwxrwxrwx. 1 postgres postgres 28 Dec 5 15:27 16389 -> /var/lib/postgresql/data/idx
postgres@postgresdb-uat-postgresql-5b9fb67fcd-dbpb4:~/data/pgdata/postgresql-db/pg_tblspc$ pwd
/var/lib/postgresql/data/pgdata/postgresql-db/pg_tblspc
Do I need to re-create the pg_tblspc or user defined tablespaces?
Thanks
Soumik
From: Shreeyansh
Dba <shreeyansh2014@xxxxxxxxx>
Sent: Thursday, December 06, 2018 11:42 AM
To: Bhattacharjee, Soumik <soumik.bhattacharjee@xxxxxxx>
Cc: pgsql-admin <pgsql-admin@xxxxxxxxxxxxxx>
Subject: Re: DB Creations/ Drop DB :: Not working...
Hi All,
Any idea how to solve this error, tried with pgadmin4 and also using psql CLI
And why this comes in?
postgres=# CREATE DATABASE symuatdb
postgres-# WITH
postgres-# OWNER = postgres
postgres-# ENCODING = 'UTF8'
postgres-# LC_COLLATE = 'en_US.utf8'
postgres-# LC_CTYPE = 'en_US.utf8'
postgres-# TABLESPACE = sym_m_data1
postgres-# CONNECTION LIMIT = 10;
ERROR: could not create directory "pg_tblspc/16386/PG_10_201707211/24576": No such file or directory
postgres=#
Thanks
Soumik