GNU/Linux |
CentOS 5.5 |
|
![]() |
drop_tablespace(7) |
![]() |
DROP TABLESPACE − remove a tablespace
DROP TABLESPACE tablespacename
DROP TABLESPACE removes a tablespace from the system.
A tablespace can only be dropped by its owner or a superuser. The tablespace must be empty of all database objects before it can be dropped. It is possible that objects in other databases may still reside in the tablespace even if no objects in the current database are using the tablespace.
tablespacename
The name of a tablespace.
To remove tablespace mystuff from the system:
DROP TABLESPACE mystuff;
DROP TABLESPACE is a PostgreSQL extension.
CREATE TABLESPACE [create_tablespace(7)], ALTER TABLESPACE [alter_tablespace(l)]
![]() |
drop_tablespace(7) | ![]() |