From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL |
Date: | 2023-03-25 22:10:46 |
Message-ID: | 3A966250-443D-4C4D-9398-6ECCEAE2AF5E@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 14 Mar 2023, at 08:00, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> wrote:
> I prefer to use "null value" for SQL null values, and NULL for the C symbol.
Thats a fair point, I agree with that.
> I'm a bit hesitant about hardcoding pg_catalog here. That happens to be true, of course, but isn't actually enforced, I think. I think that could be left off. It's not like people will be confused about which schema "pg_class.relname" is in.
>
> Also, the cached tuple isn't really for the attribute, so maybe split that up a bit, like
>
> "unexpected null value in cached tuple for catalog %s column %s"
No objections, so changed to that wording.
With these changes and a pgindent run across it per Davids comment downthread,
I've pushed this now. Thanks for review!
I'm keeping a watchful eye on the buildfarm; francolin has errored in
recoveryCheck which I'm looking into but at first glance I don't think it's
related (other animals have since passed it and it works locally, but I'll keep
digging at it to make sure).
--
Daniel Gustafsson
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2023-03-25 22:24:34 | Re: pgsql: amcheck: Fix verify_heapam for tuples where xmin or xmax is 0. |
Previous Message | Melanie Plageman | 2023-03-25 21:18:08 | Re: Option to not use ringbuffer in VACUUM, using it in failsafe mode |