Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b38c0433
Commit
b38c0433
authored
Sep 14, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reconsider placement of MemoryContextCheck() call --- do after commit,
not before, to avoid duplication of effort.
parent
4cf6e9e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+8
-7
No files found.
src/backend/tcop/postgres.c
View file @
b38c0433
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
2 2003/09/02 19:04:1
2 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
3 2003/09/14 00:03:3
2 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1753,17 +1753,18 @@ finish_xact_command(void)
/* Cancel any active statement timeout before committing */
disable_sig_alarm
(
true
);
#ifdef MEMORY_CONTEXT_CHECKING
/* Check memory before committing (since commit discards much) */
MemoryContextCheck
(
TopMemoryContext
);
#endif
/* Now commit the command */
ereport
(
DEBUG3
,
(
errmsg_internal
(
"CommitTransactionCommand"
)));
CommitTransactionCommand
();
#ifdef MEMORY_CONTEXT_CHECKING
/* Check all memory contexts that weren't freed during commit */
/* (those that were, were checked before being deleted) */
MemoryContextCheck
(
TopMemoryContext
);
#endif
#ifdef SHOW_MEMORY_STATS
/* Print mem stats after each commit for leak tracking */
if
(
ShowStats
)
...
...
@@ -2657,7 +2658,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.36
2 $ $Date: 2003/09/02 19:04:1
2 $
\n
"
);
puts
(
"$Revision: 1.36
3 $ $Date: 2003/09/14 00:03:3
2 $
\n
"
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment