Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d8ae79

Browse files
author
Thomas G. Lockhart
committed
Add debugging statements.
1 parent6e34dc3 commit9d8ae79

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.11 1997/07/24 20:15:45 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.12 1997/07/2915:51:33 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -33,13 +33,13 @@
3333
#defineASSGN "="
3434

3535
/* An array has the following internal structure:
36-
* <nbytes>- total number of bytes
37-
*<ndim> - number of dimensions of the array
38-
* <flags>- bit mask of flags
39-
* <dim>- size of each array axis
40-
* <dim_lower>- lower boundary of each dimension
41-
* <actual data>- whatever is the stored data
42-
*/
36+
* <nbytes> - total number of bytes
37+
* <ndim> - number of dimensions of the array
38+
* <flags> - bit mask of flags
39+
* <dim> - size of each array axis
40+
* <dim_lower> - lower boundary of each dimension
41+
* <actual data> - whatever is the stored data
42+
*/
4343

4444
/*-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-*/
4545
staticint_ArrayCount(char*str,intdim[],inttypdelim);
@@ -148,6 +148,14 @@ array_in(char *string,/* input array in external form */
148148
while (isspace(*p))p++;
149149
}
150150

151+
#ifdefARRAYDEBUG
152+
printf("array_in- ndim %d (",ndim);
153+
for (i=0;i<ndim;i++) {
154+
printf(" %d",dim[i]);
155+
};
156+
printf(") for %s\n",string);
157+
#endif
158+
151159
nitems=getNitems(ndim,dim);
152160
if (nitems==0) {
153161
char*emptyArray=palloc(sizeof(ArrayType));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp