Re: Assert name/short_desc to prevent SHOW ALL segfault
Steve Chavez <steve@supabase.io>
From: Steve Chavez <steve@supabase.io>
To: Michael Paquier <michael@paquier.xyz>
Cc: Nathan Bossart <nathandbossart@gmail.com>, pgsql-hackers@postgresql.org
Date: 2022-05-25T05:05:55Z
Lists: pgsql-hackers
Attachments
- 0001-Handle-a-NULL-short_desc-in-ShowAllGUCConfig.patch (text/x-patch) patch 0001
Thank you for the reviews Nathan, Michael. I agree with handling NULL in ShowAllGUCConfig() instead. I've attached the updated patch. -- Steve Chavez Engineering at https://supabase.com/ On Tue, 24 May 2022 at 20:21, Michael Paquier <michael@paquier.xyz> wrote: > On Tue, May 24, 2022 at 11:41:49AM -0700, Nathan Bossart wrote: > > I would actually ERROR on this so that we aren't relying on > > --enable-cassert builds to catch it. That being said, if there's no > strong > > reason to enforce that a short description be provided, then why not > adjust > > ShowAllGUCConfig() to set that column to NULL when short_desc is missing? > > Well, issuing an ERROR on the stable branches would be troublesome for > extension developers when reloading after a minor update if they did > not set their short_desc in a custom GUC. So, while I'd like to > encourage the use of short_desc, using your suggestion to make the > code more flexible with NULL is fine by me. GetConfigOptionByNum() > does that for long_desc by the way, meaning that we also have a > problem there on a build with --enable-nls for short_desc, no? > -- > Michael >
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Introduce pg_attribute_nonnull(...)
- 0507977aa4a3 16.0 landed
-
Handle NULL for short descriptions of custom GUC variables
- 1b40ceea24e6 10.22 landed
- c3db8a2e2ea4 11.17 landed
- ae236bf660f5 12.12 landed
- 1e6802990cdd 13.8 landed
- fe441a031940 14.4 landed
- f1431f3bffa0 15.0 landed