drop_function.sgml
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:4k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="SQL-DROPFUNCTION">
  2.  <refmeta>
  3.   <refentrytitle>
  4.    DROP FUNCTION
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10.    DROP FUNCTION
  11.   </refname>
  12.   <refpurpose>
  13.    Removes a user-defined C function
  14.   </refpurpose>
  15.  </refnamediv>
  16.  <refsynopsisdiv>
  17.   <refsynopsisdivinfo>
  18.    <date>1998-04-15</date>
  19.   </refsynopsisdivinfo>
  20.   <synopsis>
  21. DROP FUNCTION <replaceable class="parameter">name</replaceable> ( [ <replaceable class="parameter">type</replaceable> [, ...] ] )
  22.   </synopsis>
  23.   <refsect2 id="R2-SQL-DROPFUNCTION-1">
  24.    <refsect2info>
  25.     <date>1998-04-15</date>
  26.    </refsect2info>
  27.    <title>
  28.     Inputs
  29.    </title>
  30.    <para>
  31.     <variablelist>
  32.      <varlistentry>
  33.       <term><replaceable class="parameter"> name</replaceable></term>
  34.       <listitem>
  35.        <para>
  36. The name of an existing function.
  37.        </para>
  38.       </listitem>
  39.      </varlistentry>
  40.      <varlistentry>
  41.       <term><replaceable class="parameter">type</replaceable></term>
  42.       <listitem>
  43.        <para>
  44. The type of function parameters.
  45.        </para>
  46.       </listitem>
  47.      </varlistentry>
  48.     </variablelist>
  49.    </para>
  50.   </refsect2>
  51.   <refsect2 id="R2-SQL-DROPFUNCTION-2">
  52.    <refsect2info>
  53.     <date>1998-04-15</date>
  54.    </refsect2info>
  55.    <title>
  56.     Outputs
  57.    </title>
  58.    <para>
  59.     <variablelist>
  60.      <varlistentry>
  61.       <term><computeroutput>
  62. DROP
  63.        </computeroutput></term>
  64.       <listitem>
  65.        <para>
  66. Message returned if the command completes successfully.
  67.        </para>
  68.       </listitem>
  69.      </varlistentry>
  70.      <varlistentry>
  71.       <term><computeroutput>
  72. WARN RemoveFunction: Function "<replaceable class="parameter">name</replaceable>" ("<replaceable class="parameter">types</replaceable>") does not exist
  73.        </computeroutput></term>
  74.       <listitem>
  75.        <para>
  76. This message is given if the function specified does not
  77. exist in the current database.
  78.        </para>
  79.       </listitem>
  80.      </varlistentry>
  81.     </variablelist>
  82.    </para>
  83.   </refsect2>
  84.  </refsynopsisdiv>
  85.  <refsect1 id="R1-SQL-DROPFUNCTION-1">
  86.   <refsect1info>
  87.    <date>1998-04-15</date>
  88.   </refsect1info>
  89.   <title>
  90.    Description
  91.   </title>
  92.   <para>
  93.    DROP FUNCTION will remove references to an existing C
  94.    function. To execute this command the user must be the
  95.    owner of the function. The input argument types to the
  96.    function must be specified, as only the function with the
  97.    given name and argument types will be removed.
  98.   </para>
  99.   <refsect2 id="R2-SQL-DROPFUNCTION-3">
  100.    <refsect2info>
  101.     <date>1998-04-15</date>
  102.    </refsect2info>
  103.    <title>
  104.     Notes
  105.    </title>
  106.    <para>
  107.     Refer to <command>CREATE FUNCTION</command>
  108.     to create aggregate functions.
  109.    </para>
  110.   </refsect2>
  111.  </refsect1>
  112.  <refsect1 id="R1-SQL-DROPFUNCTION-2">
  113.   <title>
  114.    Usage
  115.   </title>
  116.   <para>
  117.    This command removes the square root function:
  118.    <programlisting>
  119. DROP FUNCTION sqrt(int4);
  120.    </programlisting>
  121.   </para>
  122.  </refsect1>
  123.  <refsect1 id="R1-SQL-DROPFUNCTION-3">
  124.   <title>
  125.    Bugs
  126.   </title>
  127.   <para>
  128.    No checks are made to ensure that types, operators or access
  129.    methods that rely on the function have been removed first.
  130.   </para>
  131.  </refsect1>
  132.  <refsect1 id="R1-SQL-DROPFUNCTION-4">
  133.   <title>
  134.    Compatibility
  135.   </title>
  136.   <para>
  137.    DROP FUNCTION is a <productname>Postgres</productname> language extension.
  138.   </para>
  139.   
  140.   <refsect2 id="R2-SQL-DROPFUNCTION-4">
  141.    <refsect2info>
  142.     <date>1998-04-15</date>
  143.    </refsect2info>
  144.    <title>
  145.     SQL/PSM
  146.    </title>
  147.    <para>
  148.     SQL/PSM is a proposed standard to enable function extensibility.
  149.     The SQL/PSM DROP FUNCTION statement has the following syntax:
  150.     <programlisting>
  151. DROP [ SPECIFIC ] FUNCTION <replaceable class="parameter">name</replaceable> { RESTRICT | CASCADE }
  152.     </programlisting>
  153.    </para>
  154.   </refsect2>
  155.  </refsect1>
  156. </refentry>
  157. <!-- Keep this comment at the end of the file
  158. Local variables:
  159. mode: sgml
  160. sgml-omittag:nil
  161. sgml-shorttag:t
  162. sgml-minimize-attributes:nil
  163. sgml-always-quote-attributes:t
  164. sgml-indent-step:1
  165. sgml-indent-data:t
  166. sgml-parent-document:nil
  167. sgml-default-dtd-file:"../reference.ced"
  168. sgml-exposed-tags:nil
  169. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  170. sgml-local-ecat-files:nil
  171. End:
  172. -->