Re: cannot drop a tablespace which never exists in pg_tablespace - Mailing list pgsql-general

From Adrian Klaver
Subject Re: cannot drop a tablespace which never exists in pg_tablespace
Date
Msg-id adc3d09b-440c-48c7-9d72-0f247f27feff@aklaver.com
Whole thread Raw
In response to RE: postgresql-17.0-1 Application - silent installation Issue  ("JOLAPARA Urvi (SAFRAN)" <urvi.jolapara@safrangroup.com>)
Responses Re: cannot drop a tablespace which never exists in pg_tablespace
List pgsql-general
On 12/20/24 08:09, Bharani SV-forum wrote:
> Adrian
> Inline image
> 
> initially i had created tblspace outside pg_data env variable

Did you run CREATE TABLESPACE as shown below?:

https://www.postgresql.org/docs/current/sql-createtablespace.html

Did you ever use the tablespace?

> e.g PG_DATA env variable is defined to /XXX/YYYY/ABC/15/data
> 
> the tablespace was created under  /XXX/YYYY/ABC/15/tblspace/<<tbl_spcname>>/
> assume tablespace name is abc_data
> 
> *cd /XXX/YYYY/ABC/15/tblspace/abc_data/*
> ls -atl
> drwxr-x---. 2 postgres postgres  6 Dec 19 22:08 PG_15_202209061
> 
> ls -altR
> drwxr-x---. 2 postgres postgres  6 Dec 19 22:08 PG_15_202209061
> 
> i reconfirmed
> SELECT * FROM pg_tablespace ;
>   oid  |  spcname   | spcowner | spcacl | spcoptions
> ------+------------+----------+--------+------------
>   1663 | pg_default |       10 |        |
>   1664 | pg_global  |       10 |        |
> 
> not having any entry about tablespace abc_data
> 
> Can you guide
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16
Next
From: Bharani SV-forum
Date:
Subject: Re: cannot drop a tablespace which never exists in pg_tablespace