diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1997-04-27 18:13:54 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1997-04-27 18:13:54 +0000 |
| commit | a426ff583d6fdc46be5c66d70ac5f159b0b46672 (patch) | |
| tree | 0a96f80332e43566ad20ba54a59246c1eac4aaa2 /src/test/regress/sql/random.sql | |
| parent | 832c0a4ff1f9949dd69304606374deb9bfa27dfc (diff) | |
| download | postgresql-a426ff583d6fdc46be5c66d70ac5f159b0b46672.tar.gz | |
There, I'll leave this alone until Thomas catchs up *grin*
Diffstat (limited to 'src/test/regress/sql/random.sql')
| -rw-r--r-- | src/test/regress/sql/random.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/regress/sql/random.sql b/src/test/regress/sql/random.sql new file mode 100644 index 0000000000..6e541341af --- /dev/null +++ b/src/test/regress/sql/random.sql @@ -0,0 +1,12 @@ +-- +-- test the random function +-- +-- count the number of tuples originally +SELECT count(*) FROM onek; + +-- select roughly 1/10 of the tuples +SELECT count(*) FROM onek where oidrand(onek.oid, 10); + +-- select again, the count should be different +SELECT count(*) FROM onek where oidrand(onek.oid, 10); + |
