diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-02-22 08:40:40 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-02-22 08:40:40 +0900 |
commit | 943f7ae1c8693cf3ea59d103aaf9590ea062fb9c (patch) | |
tree | bfcb1e6e45ec5516a915bb87dcceb0b805723fb1 /src/backend/utils/adt/uuid.c | |
parent | 28f3915b73f75bd1b50ba070f56b34241fe53fd1 (diff) | |
download | postgresql-943f7ae1c8693cf3ea59d103aaf9590ea062fb9c.tar.gz postgresql-943f7ae1c8693cf3ea59d103aaf9590ea062fb9c.zip |
Add lookup table for replication slot conflict reasons
This commit switches the handling of the conflict cause strings for
replication slots to use a table rather than being explicitly listed,
using a C99-designated initializer syntax for the array elements. This
makes the whole more readable while easing future maintenance with less
areas to update when adding a new conflict reason.
This is similar to 74a730631065, but the scale of the change is smaller
as there are less conflict causes than LWLock builtin tranche names.
Author: Bharath Rupireddy
Reviewed-by: Jelte Fennema-Nio
Discussion: https://postgr.es/m/CALj2ACUxSLA91QGFrJsWNKs58KXb1C03mbuwKmzqqmoAKLwJaw@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/uuid.c')
0 files changed, 0 insertions, 0 deletions