Re: Add sanity check for duplicate enum values in GUC definitions

2025-12-17 Thread Andres Freund
s://postgr.es/m/caeowx2mmorbmwjkbt4ycsjdyl3r9mp+z0bbk57vz+okjtgj...@mail.gmail.com > > -- > Chao Li (Evan) > HighGo Software Co., Ltd. > https://www.highgo.com/ > From 3c2c25d19da3b39f57c7d04b17077e015aa82758 Mon Sep 17 00:00:00 2001 > From: "Chao Li (Evan)" > Date: Mo

Re: Add sanity check for duplicate enum values in GUC definitions

2025-12-17 Thread Peter Eisentraut
On 15.12.25 10:16, Chao Li wrote: The motivation for this patch comes from my own experience. While working on [1]. I added an enum-typed GUC and made a copy-and-paste mistake, assigning the same numeric value to two different enum entries. This resulted in confusing runtime behavior and cost m

Add sanity check for duplicate enum values in GUC definitions

2025-12-15 Thread Chao Li
Hi Hackers, The motivation for this patch comes from my own experience. While working on [1]. I added an enum-typed GUC and made a copy-and-paste mistake, assigning the same numeric value to two different enum entries. This resulted in confusing runtime behavior and cost me about an hour to track