Re: Patch: Add parse_type Function - Mailing list pgsql-hackers

From jian he
Subject Re: Patch: Add parse_type Function
Date
Msg-id CACJufxGwxfnf6OcMzJVV=3Mfx2K4+rJ5nLnhZWEmXRbV72U84w@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Add parse_type Function  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: Patch: Add parse_type Function
List pgsql-hackers
On Tue, Feb 20, 2024 at 11:06 AM David E. Wheeler <david@justatheory.com> wrote:
>
> LOL, I missed that, just wrote it myself in the last hour. :-) v6 attached.
>

+SELECT to_regtypemod('interval nonesuch'); -- grammar error expected
+ERROR:  syntax error at or near "nonesuch"
+LINE 1: SELECT to_regtypemod('interval nonesuch');
+                 ^
+CONTEXT:  invalid type name "interval nonesuch"
+SELECT to_regtypemod('year(4)'); -- grammar error expected
+ to_regtypemod
+---------------
+
+(1 row)
+

the second hint `-- grammar error expected` seems to contradict with
the results?



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Switching XLog source from archive to streaming when primary available
Next
From: Bharath Rupireddy
Date:
Subject: Re: Introduce XID age and inactive timeout based replication slot invalidation