forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ed8604
Fix performance regression in pg_strtointNN_safe functions
Between6fcda9a and1b6f632, the pg_strtoint functions became quitea bit slower in v16, despite efforts in6b423ec to speed these up.Since the majority of cases for these functions will only containbase-10 digits, perhaps prefixed by a '-', it makes sense to have aspecial case for this and just fall back on the more complex versionwhich processes hex, octal, binary and underscores if the fast pathversion fails to parse the string.While we're here, update the header comments for these functions tomention that hex, octal and binary formats along with underscoreseparators are now supported.Author: Andres Freund, David RowleyReported-by: Masahiko SawadaReviewed-by: Dean Rasheed, John NaylorDiscussion:https://postgr.es/m/CAD21AoDvDmUQeJtZrau1ovnT_smN940%3DKp6mszNGK3bq9yRN6g%40mail.gmail.comBackpatch-through: 16, where6fcda9a and1b6f632 were added1 parentf7f4ab0 commit6ed8604
1 file changed
+279
-27
lines changed0 commit comments
Comments
(0)