Thread

  1. Re: [PATCH] Allow complex data for GUC extra.

    Tom Lane <tgl@sss.pgh.pa.us> — 2025-12-30T01:44:45Z

    Bryan Green <dbryan.green@gmail.com> writes:
    > One notable behavioral change: check hooks using GUC_EXTRA_IS_CONTEXT
    > now use palloc() instead of guc_malloc(). The old approach with
    > guc_malloc() allowed check hooks to return false on OOM, letting the
    > caller handle it at the appropriate error level. With palloc() an OOM
    > throws an immediate ERROR. This seemed like an acceptable tradeoff
    
    Why?  It seems both inconsistent and unsafe.
    
    			regards, tom lane