pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e

pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e

pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e

pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e

pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e

pgsql: Fail hard on out-of-memory failures in xlogreader.c

2023-10-02 Thread Michael Paquier
Fail hard on out-of-memory failures in xlogreader.c This commit changes the WAL reader routines so as a FATAL for the backend or exit(FAILURE) for the frontend is triggered if an allocation for a WAL record decode fails in walreader.c, rather than treating this case as bogus data, which would be e