head	1.16;
access;
symbols
	REL9_0_0:1.16
	REL9_1_ALPHA1:1.16
	REL9_0_RC1:1.16
	REL9_0_BETA4:1.16
	REL9_0_STABLE:1.16.0.2
	REL9_0_BETA3:1.16
	REL9_0_BETA2:1.16
	REL7_4_29:1.12
	REL8_0_25:1.13
	REL8_1_21:1.13
	REL8_2_17:1.14
	REL8_3_11:1.14
	REL8_4_4:1.15
	REL9_0_BETA1:1.16
	REL9_0_ALPHA5_BRANCH:1.15.0.12
	REL9_0_ALPHA5:1.15
	REL7_4_28:1.12
	REL8_0_24:1.13
	REL8_1_20:1.13
	REL8_2_16:1.14
	REL8_3_10:1.14
	REL8_4_3:1.15
	REL9_0_ALPHA4:1.15
	REL9_0_ALPHA4_BRANCH:1.15.0.10
	REL8_5_ALPHA3:1.15
	REL8_5_ALPHA3_BRANCH:1.15.0.8
	REL7_4_27:1.12
	REL8_0_23:1.13
	REL8_1_19:1.13
	REL8_2_15:1.14
	REL8_3_9:1.14
	REL8_4_2:1.15
	REL8_5_ALPHA2:1.15
	REL8_5_ALPHA2_BRANCH:1.15.0.6
	REL7_4_26:1.12
	REL8_0_22:1.13
	REL8_1_18:1.13
	REL8_2_14:1.14
	REL8_3_8:1.14
	REL8_4_1:1.15
	REL8_5_ALPHA1:1.15
	REL8_5_ALPHA1_BRANCH:1.15.0.4
	REL8_4_STABLE:1.15.0.2
	REL8_4_0:1.15
	REL8_4_RC2:1.15
	REL8_4_RC1:1.15
	REL8_4_BETA2:1.15
	REL8_4_BETA1:1.15
	REL7_4_25:1.12
	REL8_0_21:1.13
	REL8_1_17:1.13
	REL8_2_13:1.14
	REL8_3_7:1.14
	REL7_4_24:1.12
	REL8_0_20:1.13
	REL8_1_16:1.13
	REL8_2_12:1.14
	REL8_3_6:1.14
	REL7_4_23:1.12
	REL8_0_19:1.13
	REL8_1_15:1.13
	REL8_2_11:1.14
	REL8_3_5:1.14
	REL7_4_22:1.12
	REL8_0_18:1.13
	REL8_1_14:1.13
	REL8_2_10:1.14
	REL8_3_4:1.14
	REL7_4_21:1.12
	REL8_0_17:1.13
	REL8_1_13:1.13
	REL8_2_9:1.14
	REL8_3_3:1.14
	REL7_4_20:1.12
	REL8_0_16:1.13
	REL8_1_12:1.13
	REL8_2_8:1.14
	REL8_3_2:1.14
	REL8_2_7:1.14
	REL8_3_1:1.14
	REL8_3_STABLE:1.14.0.4
	REL8_3_0:1.14
	REL8_3_RC2:1.14
	REL7_3_21:1.8
	REL7_4_19:1.12
	REL8_0_15:1.13
	REL8_1_11:1.13
	REL8_2_6:1.14
	REL8_3_RC1:1.14
	REL8_3_BETA4:1.14
	REL8_3_BETA3:1.14
	REL8_3_BETA2:1.14
	REL8_3_BETA1:1.14
	REL7_3_20:1.8
	REL7_4_18:1.12
	REL8_0_14:1.13
	REL8_1_10:1.13
	REL8_2_5:1.14
	REL7_3_19:1.8
	REL7_4_17:1.12
	REL8_0_13:1.13
	REL8_1_9:1.13
	REL8_2_4:1.14
	REL8_0_12:1.13
	REL8_1_8:1.13
	REL8_2_3:1.14
	REL7_3_18:1.8
	REL7_4_16:1.12
	REL8_0_11:1.13
	REL8_1_7:1.13
	REL8_2_2:1.14
	REL8_0_10:1.13
	REL8_1_6:1.13
	REL8_2_1:1.14
	REL7_4_15:1.12
	REL7_3_17:1.8
	REL8_2_STABLE:1.14.0.2
	REL8_2_0:1.14
	REL8_2_RC1:1.14
	REL8_2_BETA3:1.14
	REL8_2_BETA2:1.14
	REL8_1_5:1.13
	REL8_0_9:1.13
	REL7_4_14:1.12
	REL7_3_16:1.8
	REL8_2_BETA1:1.14
	REL7_3_15:1.8
	REL7_4_13:1.12
	REL8_0_8:1.13
	REL8_1_4:1.13
	REL7_3_14:1.8
	REL7_4_12:1.12
	REL8_0_7:1.13
	REL8_1_3:1.13
	REL7_3_13:1.8
	REL7_4_11:1.12
	REL8_0_6:1.13
	REL8_1_2:1.13
	REL7_3_12:1.8
	REL7_4_10:1.12
	REL8_0_5:1.13
	REL8_1_1:1.13
	REL8_1_STABLE:1.13.0.6
	REL8_1_0:1.13
	REL8_1_0RC1:1.13
	REL8_1_0BETA4:1.13
	REL8_1_0BETA3:1.13
	REL7_3_11:1.8
	REL7_4_9:1.12
	REL8_0_4:1.13
	REL8_1_0BETA2:1.13
	REL8_1_0BETA1:1.13
	REL7_2_8:1.6
	REL7_3_10:1.8
	REL7_4_8:1.12
	REL8_0_3:1.13
	REL8_0_2:1.13
	REL7_2_7:1.6
	REL7_3_9:1.8
	REL7_4_7:1.12
	REL8_0_1:1.13
	REL8_0_STABLE:1.13.0.4
	REL8_0_0:1.13.0.2
	REL8_0_0RC5:1.13
	REL8_0_0RC4:1.13
	REL8_0_0RC3:1.13
	REL8_0_0RC2:1.13
	REL8_0_0RC1:1.13
	REL8_0_0BETA5:1.13
	REL8_0_0BETA4:1.13
	REL7_4_6:1.12
	REL7_3_8:1.8
	REL7_2_6:1.6
	REL8_0_0BETA3:1.13
	REL8_0_0BETA2:1.13
	REL7_2_5:1.6
	REL7_4_5:1.12
	REL7_3_7:1.8
	REL7_4_4:1.12
	REL8_0_0BETA1:1.13
	REL7_4_3:1.12
	REL7_4_2:1.12
	REL7_3_6:1.8
	REL7_4_1:1.12
	REL7_3_5:1.8
	REL7_4:1.12
	REL7_4_RC2:1.12
	REL7_4_STABLE:1.12.0.2
	REL7_4_RC1:1.12
	REL7_4_BETA5:1.12
	REL7_4_BETA4:1.12
	REL7_4_BETA3:1.12
	REL7_4_BETA2:1.9
	WIN32_DEV:1.9.0.2
	REL7_4_BETA1:1.9
	REL7_3_4:1.8
	REL7_3_2:1.8
	REL7_2_4:1.6
	REL7_3_STABLE:1.8.0.2
	REL7_2_3:1.6
	REL7_2_STABLE:1.6.0.2
	REL7_2:1.6
	REL7_2_RC2:1.6
	REL7_2_RC1:1.6
	REL7_2_BETA5:1.6
	REL7_2_BETA4:1.6
	REL7_2_BETA3:1.5
	REL7_2_BETA2:1.5
	REL7_2_BETA1:1.5
	REL7_1_2:1.4
	REL7_1_STABLE:1.4.0.2
	REL7_1_BETA:1.3
	REL7_1_BETA3:1.4
	REL7_1_BETA2:1.4
	REL7_1:1.4
	REL7_0_PATCHES:1.3.0.2
	REL7_0:1.3;
locks; strict;
comment	@# @;


1.16
date	2010.04.03.07.23.01;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2008.11.14.10.22.47;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2006.09.16.00.30.18;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2003.11.29.19.51.38;	author pgsql;	state Exp;
branches;
next	1.12;

1.12
date	2003.09.12.00.12.47;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	2003.09.11.21.42.20;	author momjian;	state Exp;
branches;
next	1.10;

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

1.9
date	2003.04.26.23.56.51;	author petere;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2002.04.21.19.02.39;	author thomas;	state Exp;
branches;
next	1.7;

1.7
date	2002.03.06.06.48.04;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.08.03.24.36;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	2001.09.03.12.57.50;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.25.23.15.26;	author petere;	state Exp;
branches;
next	1.3;

1.3
date	2000.03.27.17.14.43;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	2000.01.29.16.58.27;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	99.07.22.15.09.11;	author thomas;	state Exp;
branches;
next	;

1.9.2.1
date	2003.09.07.04.36.45;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.16
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/end.sgml,v 1.15 2008/11/14 10:22:47 petere Exp $
PostgreSQL documentation
-->

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

 <refnamediv>
  <refname>END</refname>
  <refpurpose>commit the current transaction</refpurpose>
 </refnamediv>

 <indexterm zone="sql-end">
  <primary>END</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
END [ WORK | TRANSACTION ]
</synopsis>
 </refsynopsisdiv>
  
 <refsect1>
  <title>Description</title>

  <para>
   <command>END</command> commits the current transaction. All changes
   made by the transaction become visible to others and are guaranteed
   to be durable if a crash occurs.  This command is a
   <productname>PostgreSQL</productname> extension
   that is equivalent to <xref linkend="sql-commit">.
  </para>
 </refsect1>
  
 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
    <term><literal>WORK</literal></term>
    <term><literal>TRANSACTION</literal></term>
    <listitem>
     <para>
      Optional key words. They have no effect.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1>
  <title>Notes</title>

  <para>
   Use <xref linkend="SQL-ROLLBACK"> to
   abort a transaction.
  </para>

  <para>
   Issuing <command>END</> when not inside a transaction does
   no harm, but it will provoke a warning message.
  </para>
 </refsect1>

 <refsect1>
  <title>Examples</title>

  <para>
   To commit the current transaction and make all changes permanent:
<programlisting>
END;
</programlisting>
  </para>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>
  
  <para>
   <command>END</command> is a <productname>PostgreSQL</productname>
   extension that provides functionality equivalent to <xref
   linkend="sql-commit">, which is
   specified in the SQL standard.
  </para>
 </refsect1>

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

  <simplelist type="inline">
   <member><xref linkend="sql-begin"></member>
   <member><xref linkend="sql-commit"></member>
   <member><xref linkend="sql-rollback"></member>
  </simplelist>
 </refsect1>
</refentry>
@


1.15
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/end.sgml,v 1.14 2006/09/16 00:30:18 momjian Exp $
d8 1
a8 1
  <refentrytitle id="SQL-END-TITLE">END</refentrytitle>
d36 1
a36 2
   that is equivalent to <xref linkend="sql-commit"
   endterm="sql-commit-title">.
d60 1
a60 1
   Use <xref linkend="SQL-ROLLBACK" endterm="SQL-ROLLBACK-TITLE"> to
d87 1
a87 1
   linkend="sql-commit" endterm="sql-commit-title">, which is
d96 3
a98 3
   <member><xref linkend="sql-begin" endterm="sql-begin-title"></member>
   <member><xref linkend="sql-commit" endterm="sql-commit-title"></member>
   <member><xref linkend="sql-rollback" endterm="sql-rollback-title"></member>
@


1.14
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/end.sgml,v 1.13 2003/11/29 19:51:38 pgsql Exp $
d9 1
@


1.13
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
$PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.12 2003/09/12 00:12:47 tgl Exp $
a101 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.12
log
@More cleanup of Diagnostics sections.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.11 2003/09/11 21:42:20 momjian Exp $
@


1.11
log
@This patch fixes a few missed GUC variables that were still upper case,
makes a few more small improvements to runtime.sgml, and makes some SGML
conventions more consistent.

Neil Conway
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.10 2003/08/31 17:32:23 petere Exp $
d33 4
a36 3
   to be durable if a crash occurs.  It is a
   <productname>PostgreSQL</productname> extension that is equivalent
   to <xref linkend="sql-commit" endterm="sql-commit-title">.
a54 3
   
 <refsect1>
  <title>Diagnostics</title>
a55 21
  <variablelist>
   <varlistentry>
    <term><computeroutput>COMMIT</computeroutput></term>
    <listitem>
     <para>
      Message returned if the transaction was successfully committed.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><computeroutput>WARNING:  COMMIT: no transaction in progress</computeroutput></term>
    <listitem>
     <para>
      Message if there is no transaction in progress.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
  
d63 5
d90 10
@


1.10
log
@Add/edit index entries.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.9 2003/04/26 23:56:51 petere Exp $
d33 3
a35 3
   to be durable if a crash occurs.  It is a PostgreSQL extension that
   is equivalent to <xref linkend="sql-commit"
   endterm="sql-commit-title">.
@


1.9
log
@Editing of more reference pages.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.8 2002/04/21 19:02:39 thomas Exp $
d16 4
@


1.9.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v 1.10 2003/08/31 17:32:23 petere Exp $
a15 4

 <indexterm zone="sql-end">
  <primary>END</primary>
 </indexterm>
@


1.8
log
@Augment the date/time examples in the User's Guide to reflect the newer
 capabilities of specifying time zones as intervals per SQL9x.
Put refentrytitle contents on the same line as the tag.
 Otherwise, leading whitespace is propagated into the product, which
 (at least) messes up the ToC layout.
Remove (some) docinfo tags containing dates. Best to omit if the dates
 are not accurate; maybe use CVS dates instead or leave them out.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.7 2002/03/06 06:48:04 momjian Exp $
d11 1
d13 4
a16 8
  <refname>
   END
  </refname>
  <refpurpose>
   commit the current transaction
  </refpurpose>
 </refnamediv>  
  
d18 1
a18 4
  <refsynopsisdivinfo>
   <date>1999-07-20</date>
  </refsynopsisdivinfo>
  <synopsis>
d20 1
a20 58
  </synopsis>
  
  <refsect2 id="R2-SQL-END-1">
   <refsect2info>
    <date>1998-09-08</date>
   </refsect2info>
   <title>
    Inputs
   </title>
   <para>

    <variablelist>
     <varlistentry>
      <term>WORK</term>
      <term>TRANSACTION</term>
      <listitem>
       <para>
	Optional keywords. They have no effect.
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
   </para>
  </refsect2>
   
  <refsect2 id="R2-SQL-END-2">
   <refsect2info>
    <date>1998-09-08</date>
   </refsect2info>
   <title>
    Outputs
   </title>
   <para>

    <variablelist>
     <varlistentry>
      <term><computeroutput>
COMMIT
       </computeroutput></term>
      <listitem>
       <para>
	Message returned if the transaction is successfully committed.
       </para>
      </listitem>
     </varlistentry>
     <varlistentry>
      <term><computeroutput>
WARNING:  COMMIT: no transaction in progress
       </computeroutput></term>
      <listitem>
       <para>
	If there is no transaction in progress.
       </para>
      </listitem>
     </varlistentry>
    </variablelist>
   </para>
  </refsect2>
d23 2
a24 7
 <refsect1 id="R1-SQL-END-1">
  <refsect1info>
   <date>1998-09-08</date>
  </refsect1info>
  <title>
   Description
  </title>
d27 5
a31 3
   <command>END</command> is a <productname>PostgreSQL</productname>
   extension, and is a synonym for the SQL92-compatible
   <xref linkend="sql-commit" endterm="sql-commit-title">.
d33 1
d35 38
a72 16
  <refsect2 id="R2-SQL-END-3">
   <refsect2info>
    <date>1998-09-08</date>
   </refsect2info>
   <title>
    Notes
   </title>
   <para>
    The keywords WORK and TRANSACTION are noise and can be omitted.
   </para>

   <para>
    Use <xref linkend="SQL-ROLLBACK" endterm="SQL-ROLLBACK-TITLE">
    to abort a transaction.
   </para>
  </refsect2>
d74 3
a77 4
 <refsect1 id="R1-SQL-END-2">
  <title>
   Usage
  </title>
d79 7
a85 1
   To make all changes permanent:
d87 5
a91 3
   <programlisting>
END WORK;
   </programlisting>
d94 3
a96 5
 
 <refsect1 id="R1-SQL-END-3">
  <title>
   Compatibility
  </title>
d98 6
a103 14
  <refsect2 id="R2-SQL-END-4">
   <refsect2info>
    <date>1998-09-08</date>
   </refsect2info>
   <title>
    SQL92
   </title>

   <para>
    <command>END</command> is a <productname>PostgreSQL</productname>
    extension which provides functionality equivalent to
    <xref linkend="sql-commit" endterm="sql-commit-title">.
   </para>
  </refsect2>
@


1.7
log
@Update reference pages for new INFO, NOTICE, WARNING elog() levels.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.6 2001/12/08 03:24:36 thomas Exp $
d8 1
a8 3
  <refentrytitle id="SQL-END-TITLE">
   END
  </refentrytitle>
@


1.6
log
@Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
 between Postgres and PostgreSQL.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.5 2001/09/03 12:57:50 petere Exp $
d75 1
a75 1
NOTICE:  COMMIT: no transaction in progress
@


1.5
log
@Put some kind of grammatical uniformity in the <refpurpose> lines.
@
text
@d2 2
a3 2
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.4 2000/12/25 23:15:26 petere Exp $
Postgres documentation
d97 1
a97 1
   <command>END</command> is a <productname>Postgres</productname>
@


1.4
log
@Refine some things to create better looking man pages.
@
text
@d2 1
a2 1
$Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.3 2000/03/27 17:14:43 thomas Exp $
d18 1
a18 1
   Commits the current transaction
@


1.3
log
@Start updating for the v7.0 release.
Use "generic functions" for math and other routines.
Use SQL92 "type 'literal'" syntax rather than Postgres "'literal'::type".
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.2 2000/01/29 16:58:27 petere Exp $
d99 1
a99 1
   <xref linkend="sql-commit-title" endterm="sql-commit-title">.
d114 1
a114 1
    Use <xref linkend="SQL-ROLLBACK-TITLE" endterm="SQL-ROLLBACK-TITLE">
d149 1
a149 1
    <xref linkend="sql-commit-title" endterm="sql-commit-title">.
@


1.2
log
@A few minor psql enhancements
Initdb help correction
Changed end/abort to commit/rollback and changed related notices
Commented out way old printing functions in libpq
Fixed a typo in alter table / alter column
@
text
@d2 1
a2 1
$Header: /usr/local/cvsroot/pgsql/doc/src/sgml/ref/end.sgml,v 1.1 1999/07/22 15:09:11 thomas Exp $
d97 2
a98 2
   <command>END</command> is a <productname>PostgreSQL</productname>
   synonym for
@


1.1
log
@Complete merge of all old man page information.
ecpg reference page still needs formatting.
@
text
@d2 1
a2 1
$Header$
d65 1
a65 1
END
d75 1
a75 1
NOTICE EndTransactionBlock and not inprogress/abort state
d97 1
a97 1
   <command>END</command> is a <productname>Postgres</productname>
d147 1
a147 1
    <command>END</command> is a <productname>Postgres</productname>
@
