Re: location for pg_default tablespace

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: location for pg_default tablespace
Date: 2010-01-12 06:17:26
Message-ID: 4B4C13F6.3000204@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)2ndQuadrant(dot)com www.2ndQuadrant.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Mead 2010-01-12 06:29:48 Re: location for pg_default tablespace
Previous Message AI Rumman 2010-01-12 06:14:42 Re: location for pg_default tablespace