File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.4 1996/11/13 20:48:46 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.5 1997/04/10 07:59:09 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -1073,6 +1073,19 @@ _copyIndexPath(IndexPath *from)
1073
1073
*/
1074
1074
newnode -> indexid = listCopy (from -> indexid );
1075
1075
Node_Copy (from , newnode , indexqual );
1076
+
1077
+ if (from -> indexkeys )
1078
+ {
1079
+ int i , len ;
1080
+
1081
+ for (len = 0 ; from -> indexkeys [len ]!= 0 ; len ++ )
1082
+ ;
1083
+ newnode -> indexkeys = (int * )palloc (sizeof (int ) * (len + 1 ));
1084
+ for (i = 0 ; i < len ; i ++ ) {
1085
+ newnode -> indexkeys [i ] = from -> indexkeys [i ];
1086
+ }
1087
+ newnode -> indexkeys [len ] = 0 ;
1088
+ }
1076
1089
1077
1090
return newnode ;
1078
1091
}
You can’t perform that action at this time.
0 commit comments