Re: Transform for pl/perl
Aleksander Alekseev <a.alekseev@postgrespro.ru>
From: Aleksander Alekseev <a.alekseev@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Cc: Anthony Bykov <a.bykov@postgrespro.ru>
Date: 2017-11-15T08:58:54Z
Lists: pgsql-hackers
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: tested, passed Documentation: tested, passed Hello Anthony, Great patch! Everything is OK and I almost agree with Pavel. The only thing that I would like to suggest is to add a little more tests for various corner cases. For instance: 1. Converting in both directions (Perl <-> JSONB) +/- infinity, NaN, MAX_INT, MIN_INT. 2. Converting in both directions strings that contain non-ASCII (Russian / Japanese / etc) characters and special characters like \n, \t, \. 3. Make sure that converting Perl objects that are not representable in JSONB (blessed hashes, file descriptors, regular expressions, ...) doesn't crash everything and shows a reasonable error message. The new status of this patch is: Waiting on Author
Commits
-
Fix jsonb_plperl to convert Perl UV values correctly.
- 93b6e03ab479 11.0 landed
-
Fix contrib/hstore_plperl to look through scalar refs.
- e3b7f7cc5063 11.0 landed
- 7594b7a53366 10.5 landed
- 645929c545ef 9.5.14 landed
- 1bebfb9b6365 9.6.10 landed
-
Allow plperl_sv_to_datum to look through scalar refs.
- 3a382983d142 11.0 landed
-
Fix excessive enreferencing in jsonb-to-plperl transform.
- 1731e3741cbb 11.0 landed