File tree 8 files changed +13
-44
lines changed
8 files changed +13
-44
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.245 2010/01/23 16:37:12 sriggs Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.246 2010/01/26 16:33:40 tgl Exp $ -->
2
2
3
3
<chapter Id="runtime-config">
4
4
<title>Server Configuration</title>
@@ -4132,21 +4132,6 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
4132
4132
</listitem>
4133
4133
</varlistentry>
4134
4134
4135
- <varlistentry id="guc-default-do-language" xreflabel="default_do_language">
4136
- <term><varname>default_do_language</varname> (<type>string</type>)</term>
4137
- <indexterm>
4138
- <primary><varname>default_do_language</> configuration parameter</primary>
4139
- </indexterm>
4140
- <listitem>
4141
- <para>
4142
- This parameter specifies the language to use when the
4143
- <literal>LANGUAGE</> option is omitted in a
4144
- <xref linkend="sql-do" endterm="sql-do-title"> statement.
4145
- The default is <literal>plpgsql</literal>.
4146
- </para>
4147
- </listitem>
4148
- </varlistentry>
4149
-
4150
4135
<varlistentry id="guc-default-transaction-isolation" xreflabel="default_transaction_isolation">
4151
4136
<indexterm>
4152
4137
<primary>transaction isolation level</primary>
Original file line number Diff line number Diff line change 1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/do.sgml,v 1.2 2009/09/23 15:41:51 tgl Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/do.sgml,v 1.3 2010/01/26 16:33:40 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -69,8 +69,7 @@ DO <replaceable class="PARAMETER">code</replaceable> [ LANGUAGE <replaceable cla
69
69
<listitem>
70
70
<para>
71
71
The name of the procedural language the code is written in.
72
- If omitted, the default is determined by the runtime parameter
73
- <xref linkend="guc-default-do-language">.
72
+ If omitted, the default is <literal>plpgsql</>.
74
73
</para>
75
74
</listitem>
76
75
</varlistentry>
@@ -83,6 +82,7 @@ DO <replaceable class="PARAMETER">code</replaceable> [ LANGUAGE <replaceable cla
83
82
<para>
84
83
The procedural language to be used must already have been installed
85
84
into the current database by means of <command>CREATE LANGUAGE</>.
85
+ <literal>plpgsql</> is installed by default, but other languages are not.
86
86
</para>
87
87
88
88
<para>
@@ -108,8 +108,6 @@ BEGIN
108
108
END LOOP;
109
109
END$$;
110
110
</programlisting>
111
- This example assumes that <varname>default_do_language</> has its
112
- default value, namely <literal>plpgsql</>.
113
111
</para>
114
112
</refsect1>
115
113
<refsect1>
Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.114 2010/01/02 16:57:37 momjian Exp $
13
+ * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.115 2010/01/26 16:33:40 tgl Exp $
14
14
*
15
15
* DESCRIPTION
16
16
* These routines take the parse tree and pick out the
@@ -2001,11 +2001,11 @@ ExecuteDoStmt(DoStmt *stmt)
2001
2001
(errcode (ERRCODE_SYNTAX_ERROR ),
2002
2002
errmsg ("no inline code specified" )));
2003
2003
2004
- /* if LANGUAGE option wasn't specified, use the default language */
2004
+ /* if LANGUAGE option wasn't specified, use the default */
2005
2005
if (language_item )
2006
2006
language = strVal (language_item -> arg );
2007
2007
else
2008
- language = default_do_language ;
2008
+ language = "plpgsql" ;
2009
2009
2010
2010
/* Convert language name to canonical case */
2011
2011
languageName = case_translate_language_name (language );
Original file line number Diff line number Diff line change 10
10
* Written by Peter Eisentraut <peter_e@gmx.net>.
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.535 2010/01/24 21:49:17 tgl Exp $
13
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.536 2010/01/26 16:33:40 tgl Exp $
14
14
*
15
15
*--------------------------------------------------------------------
16
16
*/
@@ -383,8 +383,6 @@ char *external_pid_file;
383
383
384
384
char * pgstat_temp_directory ;
385
385
386
- char * default_do_language ;
387
-
388
386
char * application_name ;
389
387
390
388
int tcp_keepalives_idle ;
@@ -2603,15 +2601,6 @@ static struct config_string ConfigureNamesString[] =
2603
2601
},
2604
2602
#endif /* USE_SSL */
2605
2603
2606
- {
2607
- {"default_do_language" , PGC_USERSET , CLIENT_CONN_STATEMENT ,
2608
- gettext_noop ("Sets the language used in DO statement if LANGUAGE is not specified." ),
2609
- NULL
2610
- },
2611
- & default_do_language ,
2612
- "plpgsql" , NULL , NULL
2613
- },
2614
-
2615
2604
{
2616
2605
{"application_name" , PGC_USERSET , LOGGING ,
2617
2606
gettext_noop ("Sets the application name to be reported in statistics and logs." ),
Original file line number Diff line number Diff line change 432
432
#temp_tablespaces = '' # a list of tablespace names, '' uses
433
433
# only default tablespace
434
434
#check_function_bodies = on
435
- #default_do_language = 'plpgsql'
436
435
#default_transaction_isolation = 'read committed'
437
436
#default_transaction_read_only = off
438
437
#session_replication_role = 'origin'
Original file line number Diff line number Diff line change 7
7
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
8
8
* Written by Peter Eisentraut <peter_e@gmx.net>.
9
9
*
10
- * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.111 2010/01/02 16:58:10 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.112 2010/01/26 16:33:40 tgl Exp $
11
11
*--------------------------------------------------------------------
12
12
*/
13
13
#ifndef GUC_H
@@ -181,8 +181,6 @@ extern char *HbaFileName;
181
181
extern char * IdentFileName ;
182
182
extern char * external_pid_file ;
183
183
184
- extern char * default_do_language ;
185
-
186
184
extern char * application_name ;
187
185
188
186
extern int tcp_keepalives_idle ;
Original file line number Diff line number Diff line change @@ -3984,7 +3984,7 @@ BEGIN
3984
3984
LOOP
3985
3985
RAISE NOTICE '%, %', r.roomno, r.comment;
3986
3986
END LOOP;
3987
- END$$ LANGUAGE plpgsql ;
3987
+ END$$;
3988
3988
NOTICE: 001, Entrance
3989
3989
NOTICE: 002, Office
3990
3990
NOTICE: 003, Office
@@ -4000,7 +4000,7 @@ DO LANGUAGE plpgsql $$begin return 1; end$$;
4000
4000
ERROR: RETURN cannot have a parameter in function returning void
4001
4001
LINE 1: DO LANGUAGE plpgsql $$begin return 1; end$$;
4002
4002
^
4003
- DO LANGUAGE plpgsql $$
4003
+ DO $$
4004
4004
DECLARE r record;
4005
4005
BEGIN
4006
4006
FOR r IN SELECT rtrim(roomno) AS roomno, foo FROM Room ORDER BY roomno
Original file line number Diff line number Diff line change @@ -3164,12 +3164,12 @@ BEGIN
3164
3164
LOOP
3165
3165
RAISE NOTICE ' %, %' , r.roomno, r.comment;
3166
3166
END LOOP;
3167
- END$$ LANGUAGE plpgsql ;
3167
+ END$$;
3168
3168
3169
3169
-- these are to check syntax error reporting
3170
3170
DO LANGUAGE plpgsql $$begin return 1; end$$;
3171
3171
3172
- DO LANGUAGE plpgsql $$
3172
+ DO $$
3173
3173
DECLARE r record;
3174
3174
BEGIN
3175
3175
FOR r IN SELECT rtrim(roomno) AS roomno, foo FROM Room ORDER BY roomno
You can’t perform that action at this time.
0 commit comments