You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a post-rewrite callback hook in plancache.c.
SQL-language functions sometimes want to modify the targetlist of
the query that returns their result. If they're to use the plan
cache, it needs to be possible to do that over again when a
replan occurs. Invent a callback hook to make that happen.
I chose to provide a separate function SetPostRewriteHook to
install such hooks. An alternative API could be to add two
more arguments to CompleteCachedPlan. I didn't do so because
I felt that few callers will want this, but there's a case that
that way would be cleaner.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/8216639.NyiUUSuA9g@aivenlaptop
0 commit comments