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/test/regress/sql/int4.sql | |
| parent | 0f61d4dd1b4f95832dcd81c9688dac56fd6b5687 (diff) | |
| download | postgresql-4fc115b2e981f8c63165ca86a23215380a3fda66.tar.gz | |
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/test/regress/sql/int4.sql')
| -rw-r--r-- | src/test/regress/sql/int4.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/regress/sql/int4.sql b/src/test/regress/sql/int4.sql index 5e84f64360..39bfec1b0d 100644 --- a/src/test/regress/sql/int4.sql +++ b/src/test/regress/sql/int4.sql @@ -123,3 +123,7 @@ SELECT 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 AS ten; SELECT 2 + 2 / 2 AS three; SELECT (2 + 2) / 2 AS two; + +-- corner cases +SELECT (1<<31-1)::int4::text; +SELECT (1<<31)::int4::text; |
