• Tom Lane's avatar
    Fix a bunch of places that called malloc and friends with no NULL check. · 052cc223
    Tom Lane authored
    Where possible, use palloc or pg_malloc instead; otherwise, insert
    explicit NULL checks.
    
    Generally speaking, these are places where an actual OOM is quite
    unlikely, either because they're in client programs that don't
    allocate all that much, or they're very early in process startup
    so that we'd likely have had a fork() failure instead.  Hence,
    no back-patch, even though this is nominally a bug fix.
    
    Michael Paquier, with some adjustments by me
    
    Discussion: <CAB7nPqRu07Ot6iht9i9KRfYLpDaF2ZuUv5y_+72uP23ZAGysRg@mail.gmail.com>
    052cc223
isolationtester.c 21.7 KB