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
cac0e366
Commit
cac0e366
authored
9 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Revert
bf08f229
Remove recent changes to logging XLOG_RUNNING_XACTS by request.
parent
3fe3511d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/postmaster/bgwriter.c
+1
-4
1 addition, 4 deletions
src/backend/postmaster/bgwriter.c
src/backend/storage/ipc/standby.c
+0
-21
0 additions, 21 deletions
src/backend/storage/ipc/standby.c
with
1 addition
and
25 deletions
src/backend/postmaster/bgwriter.c
+
1
−
4
View file @
cac0e366
...
...
@@ -330,11 +330,8 @@ BackgroundWriterMain(void)
if
(
now
>=
timeout
&&
last_snapshot_lsn
!=
GetXLogInsertRecPtr
())
{
XLogRecPtr
log_standby_lsn
=
LogStandbySnapshot
();
last_snapshot_lsn
=
LogStandbySnapshot
();
last_snapshot_ts
=
now
;
if
(
!
XLogRecPtrIsInvalid
(
log_standby_lsn
))
last_snapshot_lsn
=
log_standby_lsn
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/backend/storage/ipc/standby.c
+
0
−
21
View file @
cac0e366
...
...
@@ -902,7 +902,6 @@ LogStandbySnapshot(void)
RunningTransactions
running
;
xl_standby_lock
*
locks
;
int
nlocks
;
static
bool
last_snapshot_overflowed
=
false
;
Assert
(
XLogStandbyInfoActive
());
...
...
@@ -933,28 +932,8 @@ LogStandbySnapshot(void)
* only a shared lock.
*/
if
(
wal_level
<
WAL_LEVEL_LOGICAL
)
{
LWLockRelease
(
ProcArrayLock
);
/*
* Don't bother to log anything if nothing is happening, if we are
* using archive_timeout > 0 and we didn't overflow snapshot last time.
*
* This ensures that we don't issue an empty WAL record, which can
* be annoying when used in conjunction with archive timeout.
*/
if
(
running
->
xcnt
==
0
&&
nlocks
==
0
&&
XLogArchiveTimeout
>
0
&&
!
last_snapshot_overflowed
)
{
LWLockRelease
(
XidGenLock
);
return
InvalidXLogRecPtr
;
}
last_snapshot_overflowed
=
running
->
subxid_overflow
;
}
recptr
=
LogCurrentRunningXacts
(
running
);
/* Release lock if we kept it longer ... */
...
...
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