postgresql/src/backend
Alvaro Herrera 4aead13a75 Flush relcache entries when their FKs are meddled with
Back in commit 100340e2dc, we made relcache entries keep lists of the
foreign keys applying to the relation -- but we forgot to update
CacheInvalidateHeapTuple to flush those entries when new FKs got created
or existing ones updated/deleted.  No bugs appear to have been reported
that would be explained by this ommission, but I noticed the problem
while working on an unrelated bugfix which clearly showed it.  Fix by
adding relcache flush on relevant foreign key changes.

Backpatch to 9.6, like the aforementioned commit.

Discussion: https://postgr.es/m/201901211927.7mmhschxlejh@alvherre.pgsql
Reviewed-by: Tom Lane
2019-01-21 19:34:11 -03:00
..
access Check for conflicting queries during replay of gistvacuumpage() 2018-12-21 02:33:37 +03:00
bootstrap Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
catalog Have DISCARD ALL/TEMP remove leftover temp tables 2018-12-27 16:17:40 -03:00
commands Improve ANALYZE's handling of concurrent-update scenarios. 2019-01-03 17:00:08 -05:00
executor Allow btree comparison functions to return INT_MIN. 2018-10-05 16:01:30 -04:00
foreign Remove GetUserMappingId() and GetUserMappingById(). 2016-07-22 11:32:23 -04:00
lib Revert "Permit dump/reload of not-too-large >1GB tuples" 2016-12-06 12:46:03 -03:00
libpq Don't set PAM_RHOST for Unix sockets. 2018-11-28 14:20:07 +13:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:04 -08:00
nodes Add stack depth checks to key recursive functions in backend/nodes/*.c. 2018-12-10 11:12:43 -05:00
optimizer Avoid sharing PARAM_EXEC slots between different levels of NestLoop. 2019-01-11 15:53:34 -05:00
parser Postpone aggregate checks until after collation is assigned. 2019-01-17 06:26:15 +00:00
po Translation updates 2018-11-05 14:52:07 +01:00
port Fix and improve pg_atomic_flag fallback implementation. 2018-04-06 20:02:02 -07:00
postmaster Make autovacuum more selective about temp tables to keep 2018-12-27 16:00:39 -03:00
regex Fix regexport.c to behave sanely with lookaround constraints. 2017-04-13 17:18:35 -04:00
replication Fix handling of synchronous replication for stopping WAL senders 2018-11-29 09:12:53 +09:00
rewrite Fix set of NLS translation issues 2018-08-21 15:18:00 +09:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage PANIC on fsync() failure. 2018-11-19 13:54:00 +13:00
tcop Server-side fix for delayed NOTIFY and SIGTERM processing. 2018-10-19 21:39:22 -04:00
tsearch Make ts_locale.c's character-type functions cope with UTF-16. 2018-11-03 13:56:10 -04:00
utils Flush relcache entries when their FKs are meddled with 2019-01-21 19:34:11 -03:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Fix make rules that generate multiple output files. 2018-03-23 13:45:38 -04:00
nls.mk Translation updates 2018-08-06 19:44:29 +02:00