Re: Patch: Add parse_type Function

From: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
To: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Subject: Re: Patch: Add parse_type Function
Date: 2024-02-05 14:43:55
Message-ID: 48969cff-0a9a-448d-947a-e92898ccc57a@uni-muenster.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 05.02.24 15:10, David E. Wheeler wrote:
> Excellent, thank you very much! Updated patch attached.
>
> Best,
>
> David

v2 no longer crashes with a null parameter.
docs and regress tests were updated accordingly.

patch no longer applies cleanly (tiny little indentation issue):

/home/jim/Downloads/v2-0001-Add-parse_type-SQL-function.patch:140:
indent with spaces.
        PG_RETURN_NULL();
warning: 1 line adds whitespace errors.

I read the comments again, and something is not entirely clear to me.
Line 494 says "Raises an error on an invalid type." and 501 says
"Returns NULL for an invalid type."
Perhaps merging both comment blocks and rephrasing these sentences would
make things clearer?

--
Jim

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2024-02-05 14:47:19 Re: cataloguing NOT NULL constraints
Previous Message Dagfinn Ilmari Mannsåker 2024-02-05 14:32:16 Re: Patch: Add parse_type Function