postgresql/src/include/storage
Andres Freund 10f1f93d8a Don't skip SQL backends in logical decoding for visibility computation.
The logical decoding patchset introduced PROC_IN_LOGICAL_DECODING flag
PGXACT flag, that allows such backends to be skipped when computing
the xmin horizon/snapshots. That's fine and sensible for walsenders
streaming out logical changes, but not at all fine for SQL backends
doing logical decoding. If the latter set that flag any change they
have performed outside of logical decoding will not be regarded as
visible - which e.g. can lead to that change being vacuumed away.

Note that not setting the flag for SQL backends isn't particularly
bothersome - the SQL backend doesn't do streaming, so it only runs for
a limited amount of time.

Per buildfarm member 'tick' and Alvaro.

Backpatch to 9.4, where logical decoding was introduced.
2014-12-02 23:52:44 +01:00
..
backendid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
barrier.h Mark x86's memory barrier inline assembly as clobbering the cpu flags. 2014-09-19 17:13:07 +02:00
block.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
buf.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
buf_internals.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
buffile.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
bufmgr.h Fix race condition between hot standby and restoring a full-page image. 2014-11-13 20:02:09 +02:00
bufpage.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
checksum.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
checksum_impl.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
copydir.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
dsm.h "Pin", rather than "keep", dynamic shared memory mappings and segments. 2014-10-30 11:44:22 -04:00
dsm_impl.h "Pin", rather than "keep", dynamic shared memory mappings and segments. 2014-10-30 11:44:22 -04:00
fd.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
freespace.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
fsm_internals.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
indexfsm.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ipc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
item.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
itemid.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
itemptr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
large_object.h Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
latch.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
lmgr.h Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
lock.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
lwlock.h Fix calculation of PREDICATELOCK_MANAGER_LWLOCK_OFFSET. 2014-06-19 08:52:16 -05:00
off.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_sema.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_shmem.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pmsignal.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pos.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
predicate.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
predicate_internals.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
proc.h Don't skip SQL backends in logical decoding for visibility computation. 2014-12-02 23:52:44 +01:00
procarray.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
procsignal.h Export set_latch_on_sigusr1 symbol for Windows. 2014-01-17 12:48:23 -05:00
reinit.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relfilenode.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
s_lock.h Fix typo in solaris spinlock fix. 2014-09-09 23:36:32 +02:00
shm_mq.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shm_toc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
shmem.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
sinval.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
sinvaladt.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
smgr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
spin.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
standby.h Logging running transactions every 15 seconds. 2014-01-15 12:41:20 -05:00