Re: Assert name/short_desc to prevent SHOW ALL segfault
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>, Andres Freund <andres@anarazel.de>, Steve Chavez <steve@supabase.io>, pgsql-hackers@postgresql.org
Date: 2022-05-27T17:43:17Z
Lists: pgsql-hackers
Attachments
On Thu, May 26, 2022 at 11:01:44PM -0400, Tom Lane wrote: > Michael Paquier <michael@paquier.xyz> writes: >> FWIW, I would be fine to backpatch the NULL handling for short_desc, >> while treating the addition of nonnull as a HEAD-only change. > > Yeah, sounds about right to me. My guess is that we will need > a configure check for nonnull, but perhaps I'm wrong. Makes sense. Here's a new patch set. 0001 is the part intended for back-patching, and 0002 is the rest (i.e., adding pg_attribute_nonnull()). I switched to using __has_attribute to discover whether nonnull was supported, as that seemed cleaner. I didn't see any need for a new configure check, but maybe I am missing something. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
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