postgresql/src
Alexander Korotkov bb78e42678 Maintain RelIdToTypeIdCacheHash in TypeCacheOpcCallback()
b85a9d046e introduced a new RelIdToTypeIdCacheHash, whose entries should
exist for typecache entries with TCFLAGS_HAVE_PG_TYPE_DATA flag set or any
of TCFLAGS_OPERATOR_FLAGS set or tupDesc set.  However, TypeCacheOpcCallback(),
which resets TCFLAGS_OPERATOR_FLAGS, was forgotten to update
RelIdToTypeIdCacheHash.

This commit adds a delete_rel_type_cache_if_needed() call to the
TypeCacheOpcCallback() function to maintain RelIdToTypeIdCacheHash after
resetting TCFLAGS_OPERATOR_FLAGS.

Also, this commit fixes the name of the delete_rel_type_cache_if_needed()
function in its mentions in the comments.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20250411203241.e9.nmisch%40google.com
2025-04-23 20:26:52 +03:00
..
backend Maintain RelIdToTypeIdCacheHash in TypeCacheOpcCallback() 2025-04-23 20:26:52 +03:00
bin psql: Rework TAP routine psql_fails_like() to define WAL sender context 2025-04-23 15:33:07 +09:00
common Fix INITCAP() word boundaries for PG_UNICODE_FAST. 2025-04-21 12:34:58 -07:00
fe_utils pg_restore cleanups 2025-04-16 12:04:34 -04:00
include Fix an oversight in 3f28b2fcac. 2025-04-23 11:08:24 +05:30
interfaces Allocate JsonLexContexts on the heap to avoid warnings 2025-04-23 11:02:05 +02:00
makefiles Add support for basic NUMA awareness 2025-04-07 23:08:17 +02:00
pl plpython: Add test for returning Python set from SETOF function 2025-04-03 11:09:50 +02:00
port Fix typos and grammar in the code 2025-04-19 19:17:42 +09:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Properly prepare varinfos in estimate_multivariate_bucketsize() 2025-04-23 20:25:21 +03:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools pg_restore cleanups 2025-04-16 12:04:34 -04:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Add support for basic NUMA awareness 2025-04-07 23:08:17 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00