diff options
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); + |
