Re: implement CAST(expr AS type FORMAT 'template') - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: implement CAST(expr AS type FORMAT 'template')
Date
Msg-id CAN4CZFND5m48=DdCW62VFxmmX-EnUoTc3vwzNRhMpVHCG+cO4A@mail.gmail.com
Whole thread
In response to Re: implement CAST(expr AS type FORMAT 'template')  (jian he <jian.universality@gmail.com>)
List 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.



pgsql-hackers by date:

Previous
From: Mihail Nikalayeu
Date:
Subject: Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements
Next
From: Masahiko Sawada
Date:
Subject: Re: Optimize UUID parse using SIMD