Thread

  1. Re: SQLFunctionCache and generic plans

    Alexander Pyhalov <a.pyhalov@postgrespro.ru> — 2025-04-03T05:38:18Z

    Tom Lane писал(а) 2025-04-02 21:09:
    > I wrote:
    >> Anyway, I feel pretty good about this patch now and am quite content
    >> to stop here for PG 18.
    > 
    > Since feature freeze is fast approaching, I did a tiny bit more
    > cosmetic work on this patchset and then pushed it.  (There's still
    > plenty of time for adjustments if you have further comments.)
    > 
    > Thanks for working on this!  This is something I've wanted to see
    > done ever since we invented plancache.
    > 
    > 			regards, tom lane
    
    Hi. I've looked through the latest patch series, but didn't have much 
    time to examine them thoroughly.
    Haven't found any issue so far. From cosmetic things I've noticed - I 
    would set func->pcontext to NULL in sql_delete_callback() to avoid 
    dangling pointer if we error out early (but it seems only to be a matter 
    of taste).
    -- 
    Best regards,
    Alexander Pyhalov,
    Postgres Professional