Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b6440a7e
Commit
b6440a7e
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Make statement_timeout apply to entire query string, not per statement.
parent
a89fc4e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/tcop/postgres.c
+7
-7
7 additions, 7 deletions
src/backend/tcop/postgres.c
with
7 additions
and
7 deletions
src/backend/tcop/postgres.c
+
7
−
7
View file @
b6440a7e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.27
3
2002/07/
29 22:14:11 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.27
4
2002/07/
30 05:13:06 momjian
Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -704,6 +704,9 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
...
@@ -704,6 +704,9 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
*/
*/
MemoryContextSwitchTo
(
oldcontext
);
MemoryContextSwitchTo
(
oldcontext
);
if
(
StatementTimeout
)
enable_sig_alarm
(
StatementTimeout
,
true
);
/*
/*
* Inner loop handles the individual queries generated from a
* Inner loop handles the individual queries generated from a
* single parsetree by analysis and rewrite.
* single parsetree by analysis and rewrite.
...
@@ -719,9 +722,6 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
...
@@ -719,9 +722,6 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
xact_started
=
true
;
xact_started
=
true
;
}
}
if
(
StatementTimeout
)
enable_sig_alarm
(
StatementTimeout
,
true
);
/*
/*
* If we got a cancel signal in analysis or prior command,
* If we got a cancel signal in analysis or prior command,
* quit
* quit
...
@@ -796,8 +796,6 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
...
@@ -796,8 +796,6 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
ShowUsage
(
"EXECUTOR STATISTICS"
);
ShowUsage
(
"EXECUTOR STATISTICS"
);
}
}
disable_sig_alarm
(
true
);
/*
/*
* In a query block, we want to increment the command counter
* In a query block, we want to increment the command counter
* between queries so that the effects of early queries are
* between queries so that the effects of early queries are
...
@@ -830,6 +828,8 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
...
@@ -830,6 +828,8 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
}
}
}
/* end loop over queries generated from a parsetree */
}
/* end loop over queries generated from a parsetree */
disable_sig_alarm
(
true
);
/*
/*
* If this is the last parsetree of the query string, close down
* If this is the last parsetree of the query string, close down
* transaction statement before reporting command-complete. This is
* transaction statement before reporting command-complete. This is
...
@@ -1693,7 +1693,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1693,7 +1693,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.27
3
$ $Date: 2002/07/
29 22:14:11
$
\n
"
);
puts
(
"$Revision: 1.27
4
$ $Date: 2002/07/
30 05:13:06
$
\n
"
);
}
}
/*
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment