Re: Assert failure in base_yyparse

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Евгений Горбанев <gorbanyoves(at)basealt(dot)ru>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Assert failure in base_yyparse
Date: 2025-03-28 09:34:48
Message-ID: CAMbWs49Z4OV77=9mD0BgHqSUOdLdO3YkbQVunCAgfFKU2WcjVA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 28, 2025 at 6:05 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> Nice catch. Yeah, is_not_null is a valid column option in xmltable.
> In you example, the value of the is_not_null option is "|| 'c'", which
> is interpreted as an A_Expr.
>
> I wonder if the value's type should be checked earlier, rather than at
> the last minute.

Hmm, I wonder if we should allow the use of the 'is_not_null' keyword
in xmltable. According to the doc, it seems that users should declare
NULL or NOT NULL for a column by specifying [NOT NULL | NULL] for the
column.

Thanks
Richard

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Luzanov 2025-03-28 09:39:31 Re: making EXPLAIN extensible
Previous Message Ashutosh Bapat 2025-03-28 09:28:10 Re: Test to dump and restore objects left behind by regression