head	1.10;
access;
symbols
	REL9_0_0:1.10
	REL9_1_ALPHA1:1.10
	REL9_0_RC1:1.10
	REL9_0_BETA4:1.10
	REL9_0_STABLE:1.10.0.2
	REL9_0_BETA3:1.10
	REL9_0_BETA2:1.10
	REL8_0_25:1.2
	REL8_1_21:1.2
	REL8_2_17:1.5
	REL8_3_11:1.7
	REL8_4_4:1.8
	REL9_0_BETA1:1.10
	REL9_0_ALPHA5_BRANCH:1.9.0.8
	REL9_0_ALPHA5:1.9
	REL8_0_24:1.2
	REL8_1_20:1.2
	REL8_2_16:1.5
	REL8_3_10:1.7
	REL8_4_3:1.8
	REL9_0_ALPHA4:1.9
	REL9_0_ALPHA4_BRANCH:1.9.0.6
	REL8_5_ALPHA3:1.9
	REL8_5_ALPHA3_BRANCH:1.9.0.4
	REL8_0_23:1.2
	REL8_1_19:1.2
	REL8_2_15:1.5
	REL8_3_9:1.7
	REL8_4_2:1.8
	REL8_5_ALPHA2:1.9
	REL8_5_ALPHA2_BRANCH:1.9.0.2
	REL8_0_22:1.2
	REL8_1_18:1.2
	REL8_2_14:1.5
	REL8_3_8:1.7
	REL8_4_1:1.8
	REL8_5_ALPHA1:1.8
	REL8_5_ALPHA1_BRANCH:1.8.0.4
	REL8_4_STABLE:1.8.0.2
	REL8_4_0:1.8
	REL8_4_RC2:1.8
	REL8_4_RC1:1.8
	REL8_4_BETA2:1.8
	REL8_4_BETA1:1.8
	REL8_0_21:1.2
	REL8_1_17:1.2
	REL8_2_13:1.5
	REL8_3_7:1.7
	REL8_0_20:1.2
	REL8_1_16:1.2
	REL8_2_12:1.5
	REL8_3_6:1.7
	REL8_0_19:1.2
	REL8_1_15:1.2
	REL8_2_11:1.5
	REL8_3_5:1.7
	REL8_0_18:1.2
	REL8_1_14:1.2
	REL8_2_10:1.5
	REL8_3_4:1.7
	REL8_0_17:1.2
	REL8_1_13:1.2
	REL8_2_9:1.5
	REL8_3_3:1.7
	REL8_0_16:1.2
	REL8_1_12:1.2
	REL8_2_8:1.5
	REL8_3_2:1.7
	REL8_2_7:1.5
	REL8_3_1:1.7
	REL8_3_STABLE:1.7.0.2
	REL8_3_0:1.7
	REL8_3_RC2:1.7
	REL8_0_15:1.2
	REL8_1_11:1.2
	REL8_2_6:1.5
	REL8_3_RC1:1.7
	REL8_3_BETA4:1.7
	REL8_3_BETA3:1.7
	REL8_3_BETA2:1.7
	REL8_3_BETA1:1.7
	REL8_0_14:1.2
	REL8_1_10:1.2
	REL8_2_5:1.5
	REL8_0_13:1.2
	REL8_1_9:1.2
	REL8_2_4:1.5
	REL8_0_12:1.2
	REL8_1_8:1.2
	REL8_2_3:1.5
	REL8_0_11:1.2
	REL8_1_7:1.2
	REL8_2_2:1.5
	REL8_0_10:1.2
	REL8_1_6:1.2
	REL8_2_1:1.5
	REL8_2_STABLE:1.5.0.2
	REL8_2_0:1.5
	REL8_2_RC1:1.5
	REL8_2_BETA3:1.5
	REL8_2_BETA2:1.4
	REL8_1_5:1.2
	REL8_0_9:1.2
	REL8_2_BETA1:1.4
	REL8_0_8:1.2
	REL8_1_4:1.2
	REL8_0_7:1.2
	REL8_1_3:1.2
	REL8_0_6:1.2
	REL8_1_2:1.2
	REL8_0_5:1.2
	REL8_1_1:1.2
	REL8_1_STABLE:1.2.0.6
	REL8_1_0:1.2
	REL8_1_0RC1:1.2
	REL8_1_0BETA4:1.2
	REL8_1_0BETA3:1.2
	REL8_0_4:1.2
	REL8_1_0BETA2:1.2
	REL8_1_0BETA1:1.2
	REL8_0_3:1.2
	REL8_0_2:1.2
	REL8_0_1:1.2
	REL8_0_STABLE:1.2.0.4
	REL8_0_0:1.2.0.2
	REL8_0_0RC5:1.2
	REL8_0_0RC4:1.2
	REL8_0_0RC3:1.2
	REL8_0_0RC2:1.2
	REL8_0_0RC1:1.2
	REL8_0_0BETA5:1.2
	REL8_0_0BETA4:1.2
	REL8_0_0BETA3:1.2
	REL8_0_0BETA2:1.2
	REL8_0_0BETA1:1.2;
locks; strict;
comment	@# @;


1.10
date	2010.04.03.07.23.01;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2009.09.19.10.23.27;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2008.11.14.10.22.46;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2007.06.03.17.06.13;	author tgl;	state Exp;
branches;
next	1.6;

1.6
date	2007.01.31.23.26.03;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	2006.10.31.01.52.31;	author neilc;	state Exp;
branches;
next	1.4;

1.4
date	2006.09.16.00.30.18;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	2006.06.16.22.27.55;	author adunstan;	state Exp;
branches;
next	1.2;

1.2
date	2004.06.25.21.55.50;	author tgl;	state Exp;
branches;
next	1.1;

1.1
date	2004.06.18.06.13.05;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.
@
text
@<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.9 2009/09/19 10:23:27 petere Exp $
PostgreSQL documentation
-->

<refentry id="SQL-DROPTABLESPACE">
 <refmeta>
  <refentrytitle>DROP TABLESPACE</refentrytitle>
  <manvolnum>7</manvolnum>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>DROP TABLESPACE</refname>
  <refpurpose>remove a tablespace</refpurpose>
 </refnamediv>

 <indexterm zone="sql-droptablespace">
  <primary>DROP TABLESPACE</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
DROP TABLESPACE [ IF EXISTS ] <replaceable class="PARAMETER">tablespace_name</replaceable>
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   <command>DROP TABLESPACE</command> removes a tablespace from the system.
  </para>

  <para>
   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 might still reside
   in the tablespace even if no objects in the current database are using
   the tablespace.  Also, if the tablespace is listed in the <xref
   linkend="guc-temp-tablespaces"> setting of any active session, the
   <command>DROP</> might fail due to temporary files residing in the
   tablespace.
  </para>
 </refsect1>

 <refsect1>
  <title>Parameters</title>

  <variablelist>

   <varlistentry>
    <term><literal>IF EXISTS</literal></term>
    <listitem>
     <para>
      Do not throw an error if the tablespace does not exist. A notice is issued 
      in this case.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><replaceable class="PARAMETER">tablespace_name</replaceable></term>
    <listitem>
     <para>
      The name of a tablespace.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Notes</title>

   <para>
    <command>DROP TABLESPACE</> cannot be executed inside a transaction block.
   </para>
 </refsect1>


 <refsect1>
  <title>Examples</title>

  <para>
   To remove tablespace <literal>mystuff</literal> from the system:
<programlisting>
DROP TABLESPACE mystuff;
</programlisting>
  </para>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>

  <para>
   <command>DROP TABLESPACE</command> is a <productname>PostgreSQL</>
   extension.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <simplelist type="inline">
   <member><xref linkend="sql-createtablespace"></member>
   <member><xref linkend="sql-altertablespace"></member>
  </simplelist>
 </refsect1>

</refentry>
@


1.9
log
@Make the placeholder naming in the synopses of the SQL help more consistent
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.8 2008/11/14 10:22:46 petere Exp $
d8 1
a8 1
  <refentrytitle id="SQL-DROPTABLESPACE-TITLE">DROP TABLESPACE</refentrytitle>
d106 2
a107 2
   <member><xref linkend="sql-createtablespace" endterm="sql-createtablespace-title"></member>
   <member><xref linkend="sql-altertablespace" endterm="sql-altertablespace-title"></member>
@


1.8
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.7 2007/06/03 17:06:13 tgl Exp $
d24 1
a24 1
DROP TABLESPACE [ IF EXISTS ] <replaceable class="PARAMETER">tablespacename</replaceable>
d63 1
a63 1
    <term><replaceable class="PARAMETER">tablespacename</replaceable></term>
@


1.7
log
@Create a GUC parameter temp_tablespaces that allows selection of the
tablespace(s) in which to store temp tables and temporary files.  This is a
list to allow spreading the load across multiple tablespaces (a random list
element is chosen each time a temp object is to be created).  Temp files are
not stored in per-database pgsql_tmp/ directories anymore, but per-tablespace
directories.

Jaime Casanova and Albert Cervera, with review by Bernd Helmle and Tom Lane.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.6 2007/01/31 23:26:03 momjian Exp $
d9 1
@


1.6
log
@Update reference documentation on may/can/might:

Standard English uses "may", "can", and "might" in different ways:

        may - permission, "You may borrow my rake."

        can - ability, "I can lift that log."

        might - possibility, "It might rain today."

Unfortunately, in conversational English, their use is often mixed, as
in, "You may use this variable to do X", when in fact, "can" is a better
choice.  Similarly, "It may crash" is better stated, "It might crash".
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.5 2006/10/31 01:52:31 neilc Exp $
d39 4
a42 1
   the tablespace.
@


1.5
log
@Add text to the VACUUM, REINDEX, DROP TABLESPACE and CREATE TABLESPACE
reference pages documenting that these commands cannot be used within
a transaction block. Also make some minor improvements to the psql
reference page. Patch from Simon Riggs, minor editorialization by
myself.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.4 2006/09/16 00:30:18 momjian Exp $
d37 1
a37 1
   dropped. It is possible that objects in other databases may still reside
@


1.4
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.3 2006/06/16 22:27:55 adunstan Exp $
d70 9
@


1.3
log
@
docs for DROP ... IF EXISTS for the following cases:
  language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_tablespace.sgml,v 1.2 2004/06/25 21:55:50 tgl Exp $
a98 17

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
@


1.2
log
@Support renaming of tablespaces, and changing the owners of
aggregates, conversions, functions, operators, operator classes,
schemas, types, and tablespaces.  Fold the existing implementations
of alter domain owner and alter database owner in with these.

Christopher Kings-Lynne
@
text
@d2 1
a2 1
$PostgreSQL: pgsql-server/doc/src/sgml/ref/drop_tablespace.sgml,v 1.1 2004/06/18 06:13:05 tgl Exp $
d23 1
a23 1
DROP TABLESPACE <replaceable class="PARAMETER">tablespacename</replaceable>
d47 11
@


1.1
log
@Tablespaces.  Alternate database locations are dead, long live tablespaces.

There are various things left to do: contrib dbsize and oid2name modules
need work, and so does the documentation.  Also someone should think about
COMMENT ON TABLESPACE and maybe RENAME TABLESPACE.  Also initlocation is
dead, it just doesn't know it yet.

Gavin Sherry and Tom Lane.
@
text
@d2 1
a2 1
$PostgreSQL$
d83 1
@

