Re: implement CAST(expr AS type FORMAT 'template')

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: implement CAST(expr AS type FORMAT 'template')
Date: 2026-06-29 21:49:49
Message-ID: CAN4CZFND5m48=DdCW62VFxmmX-EnUoTc3vwzNRhMpVHCG+cO4A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The latest patch fail make check in my testrun:

not ok 166 + collate.linux.utf8

+ if ((str == NULL || fmtisnull) && flinfo->fn_strict)
+ return (Datum) 0; /* just return null result */

With the condition written like this a non strict formatter function
ignores nulls, and possibly crashes the server.

Shouldn't pg_dump also handle the new TYPEFORMAT_IN? Currently it's
lost during a dump-restore.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2026-06-29 21:54:36 Re: Optimize UUID parse using SIMD
Previous Message Mihail Nikalayeu 2026-06-29 21:48:00 Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements