postgresql/src/backend
Andres Freund 0fd38e1370 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:47:08 +01:00
..
access Minor cleanup of function declarations for BRIN. 2014-12-02 14:07:54 -05:00
bootstrap Revert "Fix bogus %name-prefix option syntax in all our Bison files." 2014-05-28 19:21:01 -04:00
catalog Improve performance of OverrideSearchPathMatchesCurrent(). 2014-11-28 12:37:27 -05:00
commands Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
executor Add bms_next_member(), and use it where appropriate. 2014-11-28 13:37:25 -05:00
foreign Implement IMPORT FOREIGN SCHEMA. 2014-07-10 15:01:43 -04:00
lib pgindent run for 9.4 2014-05-06 12:12:18 -04:00
libpq Make Port->ssl_in_use available, even when built with !USE_SSL 2014-11-25 09:46:11 +02:00
main Add a basic atomic ops API abstracting away platform/architecture details. 2014-09-25 23:49:05 +02:00
nodes Add bms_get_singleton_member(), and use it where appropriate. 2014-11-28 14:16:24 -05:00
optimizer Add bms_get_singleton_member(), and use it where appropriate. 2014-11-28 14:16:24 -05:00
parser Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
po Translation updates 2014-11-16 21:32:51 -05:00
port Add a basic atomic ops API abstracting away platform/architecture details. 2014-09-25 23:49:05 +02:00
postmaster action_at_recovery_target recovery config option 2014-11-25 20:13:30 +00:00
regex Fix incorrect search for "x?" style matches in creviterdissect(). 2014-09-23 20:26:14 -04:00
replication Don't skip SQL backends in logical decoding for visibility computation. 2014-12-02 23:47:08 +01:00
rewrite Add bms_next_member(), and use it where appropriate. 2014-11-28 13:37:25 -05:00
snowball Finish adding file version information to installed Windows binaries. 2014-08-18 22:59:53 -04:00
storage Revamp the WAL record format. 2014-11-20 18:46:41 +02:00
tcop Explicitly support the case that a plancache's raw_parse_tree is NULL. 2014-11-12 15:59:01 -05:00
tsearch Cope with more than 64K phrases in a thesaurus dictionary. 2014-11-06 20:52:40 -05:00
utils Fix JSON aggregates to work properly when final function is re-executed. 2014-12-02 15:02:37 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00