aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2025-04-23 20:14:32 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2025-04-23 20:26:52 +0300
commitbb78e4267817b5c1f5a8ff5b0b93fe756e514bb0 (patch)
treeb78b178eaadebb58e2a09969f3c643e075785f65 /src/tutorial/basics.source
parent9f404d7922e8831dc49bfa225530ba5309900e4e (diff)
downloadpostgresql-bb78e4267817b5c1f5a8ff5b0b93fe756e514bb0.tar.gz
postgresql-bb78e4267817b5c1f5a8ff5b0b93fe756e514bb0.zip
Maintain RelIdToTypeIdCacheHash in TypeCacheOpcCallback()
b85a9d046efd 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
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions