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

Commit4090d17

Browse files
committed
SET_ARGS cleanup
1 parentf1b7823 commit4090d17

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

‎src/backend/nodes/equalfuncs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.20 1998/09/01 04:29:03 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.21 1999/02/02 23:53:25 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -422,11 +422,11 @@ _equalMergePath(MergePath *a, MergePath *b)
422422

423423
if (!_equalJoinPath((JoinPath*)a, (JoinPath*)b))
424424
return false;
425-
if (!equal((a->path_mergeclauses), (b->path_mergeclauses)))
425+
if (!equal(a->path_mergeclauses,b->path_mergeclauses))
426426
return false;
427-
if (!equal((a->outersortkeys), (b->outersortkeys)))
427+
if (!equal(a->outersortkeys,b->outersortkeys))
428428
return false;
429-
if (!equal((a->innersortkeys), (b->innersortkeys)))
429+
if (!equal(a->innersortkeys,b->innersortkeys))
430430
return false;
431431
return true;
432432
}

‎src/backend/optimizer/util/pathnode.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.13 1998/09/21 15:41:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.14 1999/02/02 23:53:25 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -157,18 +157,13 @@ better_path(Path *new_path, List *unique_paths, bool *noOther)
157157
List*temp=NIL;
158158
Path*retval=NULL;
159159

160-
/*
161-
* XXX - added the following two lines which weren't int the lisp
162-
* planner, but otherwise, doesn't seem to work for the case where
163-
* new_path is 'nil
164-
*/
165160
foreach(temp,unique_paths)
166161
{
167162
path= (Path*)lfirst(temp);
168163

169-
if ((equal_path_path_ordering(&new_path->p_ordering,
170-
&path->p_ordering)&&
171-
samekeys(new_path->keys,path->keys)))
164+
if (samekeys(path->keys,new_path->keys)&&
165+
equal_path_path_ordering(&path->p_ordering,
166+
&new_path->p_ordering))
172167
{
173168
old_path=path;
174169
break;

‎src/include/utils/ps_status.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ char *ps_status_buffer = NULL;
3131
ps_status_buffer = (argv)[0]; \
3232
sprintf(ps_status_buffer, "%s %s %s %s ", execname, username, hostname, dbname); \
3333
ps_status_buffer += strlen(ps_status_buffer); \
34+
ps_status_buffer[0] = '\0'; \
3435
}
3536

3637
#definePS_CLEAR_STATUS() \
@@ -41,7 +42,7 @@ char *ps_status_buffer = NULL;
4142
if (ps_status_buffer) \
4243
{ \
4344
PS_CLEAR_STATUS(); \
44-
strcat(ps_status_buffer, status); \
45+
strcpy(ps_status_buffer, status); \
4546
} \
4647
}
4748

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp