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

Commite9b546c

Browse files
author
Maksim Milyutin
committed
Fix README and fix struct init in order to correspond with c89 standart
1 parent442eb07 commite9b546c

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ plan | { +
225225
```
226226

227227
##Functions for tracing query execution
228-
For the purpose to achieve a slightly deterministic result from`pg_query_state` function under regression tests this module introduces specificfucntions fortracingquery running on external backend process. In this case query is suspended after any node has worked off one step in pipeline structure of plan tree execution. Thus we can execute query specific number of steps and get its state which will be deterministic at least on number ofemmited rows of each node.
228+
For the purpose to achieve a slightly deterministic result from`pg_query_state` function under regression tests this module introduces specificfunctions for querytracingrunning on external backend process. In this case query is suspended after any node has worked off one step in pipeline structure of plan tree execution. Thus we can execute query specific number of steps and get its state which will be deterministic at least on number ofemitted rows of each node.
229229

230230
Function`executor_step` which takes`pid` of traceable backend provides facility to perform single step of query execution. Function`executor_continue` which also takes`pid` completes query without trace interrupts.
231231

‎signal_handler.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,32 +169,23 @@ SendQueryState(void)
169169
/* check if module is enabled */
170170
if (!pg_qs_enable)
171171
{
172-
shm_mq_msgmsg= {
173-
.length=BASE_SIZEOF_SHM_MQ_MSG,
174-
.result_code=STAT_DISABLED
175-
};
172+
shm_mq_msgmsg= {BASE_SIZEOF_SHM_MQ_MSG,STAT_DISABLED };
176173

177174
shm_mq_send(mqh,msg.length,&msg, false);
178175
}
179176

180177
/* check if current user has not grants to request state of remote backend process */
181178
elseif (!(caller->superuser|| (GetUserId()==caller->user_id)))
182179
{
183-
shm_mq_msgmsg= {
184-
.length=BASE_SIZEOF_SHM_MQ_MSG,
185-
.result_code=PERM_DENIED
186-
};
180+
shm_mq_msgmsg= {BASE_SIZEOF_SHM_MQ_MSG,PERM_DENIED };
187181

188182
shm_mq_send(mqh,msg.length,&msg, false);
189183
}
190184

191185
/* check if backend doesn't execute any query */
192186
elseif (list_length(QueryDescStack)==0)
193187
{
194-
shm_mq_msgmsg= {
195-
.length=BASE_SIZEOF_SHM_MQ_MSG,
196-
.result_code=QUERY_NOT_RUNNING
197-
};
188+
shm_mq_msgmsg= {BASE_SIZEOF_SHM_MQ_MSG,QUERY_NOT_RUNNING };
198189

199190
shm_mq_send(mqh,msg.length,&msg, false);
200191
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp