Re: location for pg_default tablespace - Mailing list pgsql-general

From Greg Smith
Subject Re: location for pg_default tablespace
Date
Msg-id 4B4C13F6.3000204@2ndquadrant.com
Whole thread Raw
In response to Re: location for pg_default tablespace  (AI Rumman <rummandba@gmail.com>)
Responses Re: location for pg_default tablespace  (Scott Mead <scott.lists@enterprisedb.com>)
List pgsql-general
AI Rumman wrote:
> I used the followings:
>
> create tablespace mytabspc location '/var/lib/pgsql/data/pg_tblspc';
>
> create database mydb with tablespace=mytabspc;
>
> drop database mydb;
>
> drop tablespace mytabspc;
> ERROR: tablspace 'mytabspc' is not empty
>
> Please tell me why?

You don't put things in pg_tblspace yourself; that directory is for the
database to manage.  Your tablespace should be somewhere completely
outside of /var/lib/pgsql/data altogether.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com


pgsql-general by date:

Previous
From: AI Rumman
Date:
Subject: Re: location for pg_default tablespace
Next
From: Scott Mead
Date:
Subject: Re: location for pg_default tablespace