Created
July 29, 2014 00:44
-
-
Save kaievns/acb23149b66418ba340c to your computer and use it in GitHub Desktop.
How to populate PostgreSQL with dummy data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE t_random AS SELECT s, md5(random()::text) FROM generate_Series(1,5) s; | |
INSERT INTO t_random VALUES (generate_series(1,1000000000), md5(random()::text)); | |
SELECT pg_size_pretty(pg_relation_size('t_random')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
generate_Series
vsgenerate_series
- same?