mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove the default_do_language parameter, instead making DO use a hardwired
default of "plpgsql". This is more reasonable than it was when the DO patch was written, because we have since decided that plpgsql should be installed by default. Per discussion, having a parameter for this doesn't seem useful enough to justify the risk of application breakage if the value is changed unexpectedly.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/do.sgml,v 1.2 2009/09/23 15:41:51 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/do.sgml,v 1.3 2010/01/26 16:33:40 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@@ -69,8 +69,7 @@ DO <replaceable class="PARAMETER">code</replaceable> [ LANGUAGE <replaceable cla
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the procedural language the code is written in.
|
||||
If omitted, the default is determined by the runtime parameter
|
||||
<xref linkend="guc-default-do-language">.
|
||||
If omitted, the default is <literal>plpgsql</>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -83,6 +82,7 @@ DO <replaceable class="PARAMETER">code</replaceable> [ LANGUAGE <replaceable cla
|
||||
<para>
|
||||
The procedural language to be used must already have been installed
|
||||
into the current database by means of <command>CREATE LANGUAGE</>.
|
||||
<literal>plpgsql</> is installed by default, but other languages are not.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@@ -108,8 +108,6 @@ BEGIN
|
||||
END LOOP;
|
||||
END$$;
|
||||
</programlisting>
|
||||
This example assumes that <varname>default_do_language</> has its
|
||||
default value, namely <literal>plpgsql</>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
|
Reference in New Issue
Block a user