Skip to content

Commit c3f4c4b

Browse files
kelvicharssher
authored andcommitted
Global snapshots
Check that global_snapshot_defer_time early instead of falling on assert. Also set default value to 30 secs. Mostly cosmetical improvements. * (Arguably) improved comments around locking during circular buffer maintenance; also, don't lock procarray during global_snapshot_xmin bump. * s/snaphot/snapshot, other typos. * Don't track_global_snapshots by default -- while handy for testing, it doesn't look generally good. (cherry picked from commit f9dd1c3) Fix initdb failure with non-zero global_snapshot_defer_time. And set its default value to 5. Also fix one warning (damned 'void' instead of true void). (cherry picked from commit d545692)
1 parent 2d731c6 commit c3f4c4b

File tree

23 files changed

+1356
-8
lines changed

23 files changed

+1356
-8
lines changed

src/backend/access/transam/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ subdir = src/backend/access/transam
1212
top_builddir = ../../../..
1313
include $(top_builddir)/src/Makefile.global
1414

15-
OBJS = clog.o commit_ts.o global_csn_log.o generic_xlog.o \
15+
OBJS = clog.o commit_ts.o global_csn_log.o global_snapshot.o generic_xlog.o \
1616
multixact.o parallel.o rmgr.o slru.o \
1717
subtrans.o timeline.o transam.o twophase.o twophase_rmgr.o varsup.o \
1818
xact.o xlog.o xlogarchive.o xlogfuncs.o \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy