You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robert Haas
fa0e03c15a
Remove InitXLOGAccess().
...
It's not great that RecoveryInProgress() calls InitXLOGAccess(),
because a status inquiry function typically shouldn't have the side
effect of performing initializations. We could fix that by calling
InitXLOGAccess() from some other place, but instead, let's remove it
altogether.
One thing InitXLogAccess() did is initialize wal_segment_size, but it
doesn't need to do that. In the postmaster, PostmasterMain() calls
LocalProcessControlFile(), and all child processes will inherit that
value -- except in EXEC_BACKEND bulds, but then each backend runs
SubPostmasterMain() which also calls LocalProcessControlFile().
The other thing InitXLOGAccess() did is update RedoRecPtr and
doPageWrites, but that's not critical, because all code that uses
them will just retry if it turns out that they've changed. The
only difference is that most code will now see an initial value that
is definitely invalid instead of one that might have just been way
out of date, but that will only happen once per backend lifetime,
so it shouldn't be a big deal.
Patch by me, reviewed by Nathan Bossart, Michael Paquier, Andres
Freund, Heikki Linnakangas, and Álvaro Herrera.
Discussion: http://postgr.es/m/CA+TgmoY7b65qRjzHN_tWUk8B4sJqk1vj1d31uepVzmgPnZKeLg@mail.gmail.com
4 years ago
..
amapi.h
Ignore BRIN indexes when checking for HOT udpates
4 years ago
amvalidate.h
Update copyright for 2021
5 years ago
attmap.h
Update copyright for 2021
5 years ago
attnum.h
Fix typos
4 years ago
brin.h
Update copyright for 2021
5 years ago
brin_internal.h
Move IS [NOT] NULL handling from BRIN support functions
5 years ago
brin_page.h
Update copyright for 2021
5 years ago
brin_pageops.h
Update copyright for 2021
5 years ago
brin_revmap.h
Update copyright for 2021
5 years ago
brin_tuple.h
Initial pgindent and pgperltidy run for v14.
5 years ago
brin_xlog.h
Update copyright for 2021
5 years ago
bufmask.h
Update copyright for 2021
5 years ago
clog.h
Remove unused function prototypes.
5 years ago
commit_ts.h
Remove unused function declaration
4 years ago
detoast.h
Allow configurable LZ4 TOAST compression.
5 years ago
genam.h
Simplify state managed by VACUUM.
5 years ago
generic_xlog.h
Update copyright for 2021
5 years ago
gin.h
Update copyright for 2021
5 years ago
gin_private.h
Pass down "logically unchanged index" hint.
5 years ago
ginblock.h
Update copyright for 2021
5 years ago
ginxlog.h
Update copyright for 2021
5 years ago
gist.h
C comments: improve description of GiST NSN and GistBuildLSN
5 years ago
gist_private.h
Pass down "logically unchanged index" hint.
5 years ago
gistscan.h
Update copyright for 2021
5 years ago
gistxlog.h
Update copyright for 2021
5 years ago
hash.h
Pass down "logically unchanged index" hint.
5 years ago
hash_xlog.h
Update copyright for 2021
5 years ago
heapam.h
Explain pruning pgstats accounting subtleties.
4 years ago
heapam_xlog.h
Standardize cleanup lock terminology.
4 years ago
heaptoast.h
Update copyright for 2021
5 years ago
hio.h
Update copyright for 2021
5 years ago
htup.h
Update copyright for 2021
5 years ago
htup_details.h
Rework HeapTupleHeader macros to reuse itemptr.h
5 years ago
itup.h
Support INCLUDE'd columns in SP-GiST.
5 years ago
multixact.h
Remove unused function prototypes.
5 years ago
nbtree.h
Fix "single value strategy" index deletion issue.
4 years ago
nbtxlog.h
Don't consider newly inserted tuples in nbtree VACUUM.
5 years ago
parallel.h
Update copyright for 2021
5 years ago
printsimple.h
Update copyright for 2021
5 years ago
printtup.h
Update copyright for 2021
5 years ago
relation.h
Update copyright for 2021
5 years ago
reloptions.h
Update copyright for 2021
5 years ago
relscan.h
Initial pgindent and pgperltidy run for v14.
5 years ago
rewriteheap.h
Update copyright for 2021
5 years ago
rmgr.h
…
rmgrlist.h
Update copyright for 2021
5 years ago
sdir.h
Update copyright for 2021
5 years ago
session.h
Update copyright for 2021
5 years ago
skey.h
Update copyright for 2021
5 years ago
slru.h
Prevent excess SimpleLruTruncate() deletion.
5 years ago
spgist.h
Pass down "logically unchanged index" hint.
5 years ago
spgist_private.h
Re-order pg_attribute columns to eliminate some padding space.
5 years ago
spgxlog.h
Update copyright for 2021
5 years ago
stratnum.h
Update copyright for 2021
5 years ago
subtrans.h
Remove unused function prototypes.
5 years ago
syncscan.h
Update copyright for 2021
5 years ago
sysattr.h
Update copyright for 2021
5 years ago
table.h
Update copyright for 2021
5 years ago
tableam.h
Add hardening to catch invalid TIDs in indexes.
4 years ago
timeline.h
Update copyright for 2021
5 years ago
toast_compression.h
Rethink definition of pg_attribute.attcompression.
5 years ago
toast_helper.h
Allow configurable LZ4 TOAST compression.
5 years ago
toast_internals.h
Short-circuit slice requests that are for more than the object's size.
5 years ago
transam.h
Replace explicit PIN entries in pg_depend with an OID range test.
5 years ago
tsmapi.h
Update copyright for 2021
5 years ago
tupconvert.h
Fix permission checks on constraint violation errors on partitions.
5 years ago
tupdesc.h
Update copyright for 2021
5 years ago
tupdesc_details.h
Update copyright for 2021
5 years ago
tupmacs.h
Update copyright for 2021
5 years ago
twophase.h
Fix CREATE INDEX CONCURRENTLY for the newest prepared transactions.
4 years ago
twophase_rmgr.h
Update copyright for 2021
5 years ago
valid.h
Update copyright for 2021
5 years ago
visibilitymap.h
Split macros from visibilitymap.h into a separate header
4 years ago
visibilitymapdefs.h
Split macros from visibilitymap.h into a separate header
4 years ago
xact.h
Replace XLOG_INCLUDE_XID flag with a more localized flag.
4 years ago
xlog.h
Remove InitXLOGAccess().
4 years ago
xlog_internal.h
Fix WAL replay in presence of an incomplete record
4 years ago
xlogarchive.h
Report wait events for local shell commands like archive_command.
4 years ago
xlogdefs.h
Revert "Avoid creating archive status ".ready" files too early"
4 years ago
xloginsert.h
Update copyright for 2021
5 years ago
xlogreader.h
Fix WAL replay in presence of an incomplete record
4 years ago
xlogrecord.h
Document XLOG_INCLUDE_XID a little better
4 years ago
xlogutils.h
Remove all use of ThisTimeLineID global variable outside of xlog.c
4 years ago