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
cac0e366
Commit
cac0e366
authored
Apr 06, 2016
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert
bf08f229
Remove recent changes to logging XLOG_RUNNING_XACTS by request.
parent
3fe3511d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
src/backend/postmaster/bgwriter.c
src/backend/postmaster/bgwriter.c
+1
-4
src/backend/storage/ipc/standby.c
src/backend/storage/ipc/standby.c
+0
-21
No files found.
src/backend/postmaster/bgwriter.c
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
;
}
}
...
...
src/backend/storage/ipc/standby.c
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 ... */
...
...
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