Re: pg15b1: FailedAssertion("val > base", File: "...src/include/utils/relptr.h", Line: 67, PID: 30485)

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg15b1: FailedAssertion("val > base", File: "...src/include/utils/relptr.h", Line: 67, PID: 30485)
Date: 2022-06-22 14:09:28
Message-ID: CA+TgmoYi3SaQkZ37ikX78=w0+khomada9jDP5m-nBd60vVrDYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 22, 2022 at 12:34 AM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> > For the record, the third idea proposed was to use 1 for the first
> > byte, so that 0 is reserved for NULL and works with memset(0). Here's
> > an attempt at that.
>
> ... erm, though, duh, I forgot to adjust Assert(val > base). One more time.

I like this idea and think this might have the side benefit of making
it harder to get away with accessing relptr_off directly.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2022-06-22 14:12:26 Re: SYSTEM_USER reserved word implementation
Previous Message Robert Haas 2022-06-22 13:50:02 Re: Skipping logical replication transactions on subscriber side