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

Commit88b17d9

Browse files
committed
From: Massimo Dal Zotto <dz@cs.unitn.it>> ps-status.patch>> macros for ps status, used by postgres.c and utility.c.> Unfortunately ps status is system dependent and the current> code doesn't work on linux. The use of macros confines system> dependency to into one file (ps-status.h). Users of other> operating systems should check this code and submit new macros.
1 parentab00a22 commit88b17d9

File tree

4 files changed

+50
-52
lines changed

4 files changed

+50
-52
lines changed

‎src/backend/tcop/pquery.c

Lines changed: 3 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/tcop/pquery.c,v 1.16 1998/06/04 17:26:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.17 1998/08/25 21:24:07 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -35,14 +35,13 @@
3535
#include"executor/execdesc.h"
3636
#include"executor/executor.h"
3737
#include"tcop/pquery.h"
38+
#include"utils/ps_status.h"
3839

3940
#include"commands/command.h"
4041

4142
staticchar*CreateOperationTag(intoperationType);
4243
staticvoidProcessQueryDesc(QueryDesc*queryDesc);
4344

44-
externconstchar**ps_status;/* from postgres.c */
45-
4645

4746
/* ----------------------------------------------------------------
4847
*CreateQueryDesc
@@ -228,7 +227,7 @@ ProcessQueryDesc(QueryDesc *queryDesc)
228227
plan=queryDesc->plantree;
229228

230229
operation=queryDesc->operation;
231-
*ps_status=tag=CreateOperationTag(operation);
230+
PS_SET_STATUS(tag=CreateOperationTag(operation));
232231
dest=queryDesc->dest;
233232

234233
/* ----------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp