Re: How to insert random character data into tables for testing purpose. THanks. - Mailing list pgsql-general

From leaf_yxj
Subject Re: How to insert random character data into tables for testing purpose. THanks.
Date
Msg-id 1335981827565-5681242.post@n5.nabble.com
Whole thread Raw
In response to Re: How to insert random character data into tables for testing purpose. THanks.  (Andreas Kretschmer <akretschmer@spamfence.net>)
Responses Re: Re: How to insert random character data into tables for testing purpose. THanks.
List pgsql-general
Hi Andreas,

Thanks a lot.

I tried those following , they work.

1) insert into test values ( generate_series(1,100000000000),
md5(random()::text));


2) create table t_random as select s, md5(random()::text) from
generate_Series(1,5) s;

Thanks.
Regards.

Grace

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/How-to-insert-random-character-data-into-tables-for-testing-purpose-THanks-tp5680973p5681242.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Chris Angelico
Date:
Subject: Re: new rows based on existing rows
Next
From: Bruce Momjian
Date:
Subject: Re: Limit the normal user to see system catalog or not??? And create privilege???