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
f444dafa
Commit
f444dafa
authored
Aug 28, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can't truncate pg_subtrans during a recovery checkpoint --- subtrans
module isn't fully initialized yet.
parent
7ff1c9d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+5
-3
No files found.
src/backend/access/transam/xlog.c
View file @
f444dafa
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.16
3 2004/08/23 23:22:44
tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.16
4 2004/08/28 18:18:03
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -4922,8 +4922,10 @@ CreateCheckPoint(bool shutdown, bool force)
...
@@ -4922,8 +4922,10 @@ CreateCheckPoint(bool shutdown, bool force)
* Truncate pg_subtrans if possible. We can throw away all data before
* Truncate pg_subtrans if possible. We can throw away all data before
* the oldest XMIN of any running transaction. No future transaction will
* the oldest XMIN of any running transaction. No future transaction will
* attempt to reference any pg_subtrans entry older than that (see Asserts
* attempt to reference any pg_subtrans entry older than that (see Asserts
* in subtrans.c).
* in subtrans.c). During recovery, though, we mustn't do this because
* StartupSUBTRANS hasn't been called yet.
*/
*/
if
(
!
InRecovery
)
TruncateSUBTRANS
(
GetOldestXmin
(
true
));
TruncateSUBTRANS
(
GetOldestXmin
(
true
));
LWLockRelease
(
CheckpointLock
);
LWLockRelease
(
CheckpointLock
);
...
...
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