Skip to content

Commit 5d8006c

Browse files
tglsfdcCommitfest Bot
authored and
Commitfest Bot
committed
Factor out plpgsql's management of its function cache.
SQL-language functions need precisely this same functionality to manage a long-lived cache of functions. Rather than duplicating or reinventing that code, let's split it out into a new module funccache.c so that it is available for any language that wants to use it. This is mostly an exercise in moving and renaming code, and should not change any behavior. I have added one feature that plpgsql doesn't use but SQL functions will need: the cache lookup key can include the output tuple descriptor when the function returns composite. Author: Tom Lane <[email protected]> Discussion: https://postgr.es/m/8216639.NyiUUSuA9g@aivenlaptop
1 parent f8bf567 commit 5d8006c

File tree

9 files changed

+811
-444
lines changed

9 files changed

+811
-444
lines changed

src/backend/utils/cache/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ OBJS = \
1616
attoptcache.o \
1717
catcache.o \
1818
evtcache.o \
19+
funccache.o \
1920
inval.o \
2021
lsyscache.o \
2122
partcache.o \

0 commit comments

Comments
 (0)