Re: When deleting the plpgsql function, release the CachedPlan of the function

2025-09-05 Thread zengman
Attempt to clear the compilation warning, overwrite the plpgsql.out file, and update the patch. 002_cleanup_spl_funccache_v2.patch Description: Binary data

Re: When deleting the plpgsql function, release the CachedPlan of the function

2025-08-19 Thread zengman
This patch only addresses the plan cache release for plpgsql (the procedural language) and does not cover SQL functions. Since the src/backend/utils/cache/funccache.c file was introduced in PostgreSQL 18, I will first upgrade to version 18,  then figure out how to extend the benefit to SQL funct

Re: Re: When deleting the plpgsql function, release the CachedPlan of the function

2025-08-18 Thread zengman
That's correct??this is a simple and blunt patch, and it fails to account for many factors. Initially, I wasn't even sure if this qualified as a distinct issue. Your solution is far more reasonable, and I will rethink the new implementation thoroughly based on your approach. Thanks, Zeng Man

Re: When deleting the plpgsql function, release the CachedPlan of the function

2025-08-18 Thread zengman
Sorry for the garbled characters. I am resending the original test results as an attachment. case.txt Description: Binary data

Re: When deleting the plpgsql function, release the CachedPlan of the function

2025-08-18 Thread zengman
Sorry for the garbled characters. I am resending the original test results as an attachment. result.pdf Description: Binary data

When deleting the plpgsql function, release the CachedPlan of the function

2025-08-17 Thread zengman
Hi, hackers I have observed an issue where the CachedPlan corresponding to a function/procedure is not released when we execute the "DROP FUNCTION\PROCEDURE" command. A patch to resolve this problem is attached. A simple test case is as follows: Step 1 ?? create or replace procedure test_pr

Re: [PATCH] Fixed assertion issues in "pg_get_viewdef"

2024-11-19 Thread zengman
Thanks for your guidance, you are right, I looked at your patch and combined it with the example to generate a new patch, which is really better. Thanks, Man Zeng -- Original -- From:  "Tom Lane" v3-fix-incorrect-assertion.patch Description: Binary data