pgsql: Fix guc_malloc calls for consistency and OOM checks

2025-03-27 Thread Daniel Gustafsson
Fix guc_malloc calls for consistency and OOM checks check_createrole_self_grant and check_synchronized_standby_slots were allocating memory on a LOG elevel without checking if the allocation succeeded or not, which would have led to a segfault on allocation failure. On top of that, a number of ca

pgsql: Fix guc_malloc calls for consistency and OOM checks

2025-03-27 Thread Daniel Gustafsson
Fix guc_malloc calls for consistency and OOM checks check_createrole_self_grant and check_synchronized_standby_slots were allocating memory on a LOG elevel without checking if the allocation succeeded or not, which would have led to a segfault on allocation failure. On top of that, a number of ca

pgsql: Fix guc_malloc calls for consistency and OOM checks

2025-03-27 Thread Daniel Gustafsson
Fix guc_malloc calls for consistency and OOM checks check_createrole_self_grant and check_synchronized_standby_slots were allocating memory on a LOG elevel without checking if the allocation succeeded or not, which would have led to a segfault on allocation failure. On top of that, a number of ca