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

Commitd747140

Browse files
committed
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
1 parent4e86efb commitd747140

File tree

654 files changed

+11901
-11388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

654 files changed

+11901
-11388
lines changed

‎contrib/auto_explain/auto_explain.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.4 2009/01/05 13:35:38 tgl Exp $
9+
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.5 2009/06/11 14:48:50 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -19,7 +19,7 @@
1919
PG_MODULE_MAGIC;
2020

2121
/* GUC variables */
22-
staticintauto_explain_log_min_duration=-1;/* msec or -1 */
22+
staticintauto_explain_log_min_duration=-1;/* msec or -1 */
2323
staticboolauto_explain_log_analyze= false;
2424
staticboolauto_explain_log_verbose= false;
2525
staticboolauto_explain_log_nested_statements= false;
@@ -28,21 +28,21 @@ static bool auto_explain_log_nested_statements = false;
2828
staticintnesting_level=0;
2929

3030
/* Saved hook values in case of unload */
31-
staticExecutorStart_hook_typeprev_ExecutorStart=NULL;
32-
staticExecutorRun_hook_typeprev_ExecutorRun=NULL;
33-
staticExecutorEnd_hook_typeprev_ExecutorEnd=NULL;
31+
staticExecutorStart_hook_typeprev_ExecutorStart=NULL;
32+
staticExecutorRun_hook_typeprev_ExecutorRun=NULL;
33+
staticExecutorEnd_hook_typeprev_ExecutorEnd=NULL;
3434

3535
#defineauto_explain_enabled() \
3636
(auto_explain_log_min_duration >= 0 && \
3737
(nesting_level == 0 || auto_explain_log_nested_statements))
3838

39-
void_PG_init(void);
40-
void_PG_fini(void);
39+
void_PG_init(void);
40+
void_PG_fini(void);
4141

4242
staticvoidexplain_ExecutorStart(QueryDesc*queryDesc,inteflags);
4343
staticvoidexplain_ExecutorRun(QueryDesc*queryDesc,
44-
ScanDirectiondirection,
45-
longcount);
44+
ScanDirectiondirection,
45+
longcount);
4646
staticvoidexplain_ExecutorEnd(QueryDesc*queryDesc);
4747

4848

@@ -54,8 +54,8 @@ _PG_init(void)
5454
{
5555
/* Define custom GUC variables. */
5656
DefineCustomIntVariable("auto_explain.log_min_duration",
57-
"Sets the minimum execution time above which plans will be logged.",
58-
"Zero prints all plans. -1 turns this feature off.",
57+
"Sets the minimum execution time above which plans will be logged.",
58+
"Zero prints all plans. -1 turns this feature off.",
5959
&auto_explain_log_min_duration,
6060
-1,
6161
-1,INT_MAX /1000,
@@ -138,9 +138,9 @@ explain_ExecutorStart(QueryDesc *queryDesc, int eflags)
138138
if (auto_explain_enabled())
139139
{
140140
/*
141-
* Set up to track total elapsed time in ExecutorRun. Make sure
142-
*thespace is allocated in the per-query context so it will go
143-
*away atExecutorEnd.
141+
* Set up to track total elapsed time in ExecutorRun. Make sure the
142+
* space is allocated in the per-query context so it will go away at
143+
* ExecutorEnd.
144144
*/
145145
if (queryDesc->totaltime==NULL)
146146
{
@@ -184,23 +184,23 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
184184
{
185185
if (queryDesc->totaltime&&auto_explain_enabled())
186186
{
187-
doublemsec;
187+
doublemsec;
188188

189189
/*
190-
* Make sure stats accumulation is done. (Note: it's okay if
191-
*severallevels of hook all do this.)
190+
* Make sure stats accumulation is done. (Note: it's okay if several
191+
* levels of hook all do this.)
192192
*/
193193
InstrEndLoop(queryDesc->totaltime);
194194

195195
/* Log plan if duration is exceeded. */
196196
msec=queryDesc->totaltime->total*1000.0;
197197
if (msec >=auto_explain_log_min_duration)
198198
{
199-
StringInfoDatabuf;
199+
StringInfoDatabuf;
200200

201201
initStringInfo(&buf);
202202
ExplainPrintPlan(&buf,queryDesc,
203-
queryDesc->doInstrument&&auto_explain_log_analyze,
203+
queryDesc->doInstrument&&auto_explain_log_analyze,
204204
auto_explain_log_verbose);
205205

206206
/* Remove last line break */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp