diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-11-19 22:13:11 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-11-19 22:13:11 -0500 |
commit | 4fc115b2e981f8c63165ca86a23215380a3fda66 (patch) | |
tree | fd2a51d0af0e2c3d2d3ce6d701c4402fef65c34e /src/include/utils/builtins.h | |
parent | 0f61d4dd1b4f95832dcd81c9688dac56fd6b5687 (diff) | |
download | postgresql-4fc115b2e981f8c63165ca86a23215380a3fda66.tar.gz postgresql-4fc115b2e981f8c63165ca86a23215380a3fda66.zip |
Speed up conversion of signed integers to C strings.
A hand-coded implementation turns out to be much faster than calling
printf(). In passing, add a few more regresion tests.
Andres Freund, with assorted, mostly cosmetic changes.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 020ce3ce2ed..7b1bb235383 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -275,6 +275,7 @@ extern Datum current_schemas(PG_FUNCTION_ARGS); extern int32 pg_atoi(char *s, int size, int c); extern void pg_itoa(int16 i, char *a); extern void pg_ltoa(int32 l, char *a); +extern void pg_lltoa(int64 ll, char *a); /* * Per-opclass comparison functions for new btrees. These are |