Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7157114

Browse files
committed
Remove long-unused and broken TCL_ARRAYS.
1 parent c67f6f2 commit 7157114

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/backend/utils/adt/arrayfuncs.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.140 2008/01/01 19:45:52 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.141 2008/02/29 20:58:33 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1030,9 +1030,7 @@ array_out(PG_FUNCTION_ARGS)
10301030
if (ch == '"' || ch == '\\')
10311031
{
10321032
needquote = true;
1033-
#ifndef TCL_ARRAYS
10341033
overall_length += 1;
1035-
#endif
10361034
}
10371035
else if (ch == '{' || ch == '}' || ch == typdelim ||
10381036
isspace((unsigned char) ch))
@@ -1103,7 +1101,6 @@ array_out(PG_FUNCTION_ARGS)
11031101
if (needquotes[k])
11041102
{
11051103
APPENDCHAR('"');
1106-
#ifndef TCL_ARRAYS
11071104
for (tmp = values[k]; *tmp; tmp++)
11081105
{
11091106
char ch = *tmp;
@@ -1113,9 +1110,6 @@ array_out(PG_FUNCTION_ARGS)
11131110
*p++ = ch;
11141111
}
11151112
*p = '\0';
1116-
#else
1117-
APPENDSTR(values[k]);
1118-
#endif
11191113
APPENDCHAR('"');
11201114
}
11211115
else

src/include/pg_config_manual.h

+1-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* for developers. If you edit any of these, be sure to do a *full*
77
* rebuild (and an initdb if noted).
88
*
9-
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.27 2007/06/08 18:23:53 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.28 2008/02/29 20:58:33 alvherre Exp $
1010
*------------------------------------------------------------------------
1111
*/
1212

@@ -99,16 +99,6 @@
9999
*/
100100
#define NUM_USER_DEFINED_LWLOCKS 4
101101

102-
/*
103-
* Define this to make libpgtcl's "pg_result -assign" command process
104-
* C-style backslash sequences in returned tuple data and convert
105-
* PostgreSQL array values into Tcl lists. CAUTION: This conversion
106-
* is *wrong* unless you install the routines in
107-
* contrib/string/string_io to make the server produce C-style
108-
* backslash sequences in the first place.
109-
*/
110-
/* #define TCL_ARRAYS */
111-
112102
/*
113103
* Define this if you want psql to _always_ ask for a username and a
114104
* password for password authentication.

0 commit comments

Comments
 (0)