Re: looking for large dataset

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Antoine <asolomon15(at)nyc(dot)rr(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: looking for large dataset
Date: 2003-05-05 16:25:57
Message-ID: Pine.LNX.4.33.0305051023270.2776-200000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 3 May 2003, Antoine wrote:

> I was woundering where could I find a nice large dataset. Perhaps 50
> thousand records or more

I've attached a PHP script called mktestdb that reads in the dictionary at
/usr/share/dict/words, and inserts a user defined number of rows into a
user defined number of columns.

It's ugly and simple. Just pipe the output to a text file or psql and off
you go.

usage:

mktestdb tablename [rows [cols]]

default of 1 column and 1000 rows.

It would be easy enough to rewrite this in something more portable if
someone wanted to.

Attachment Content-Type Size
mktestdb text/plain 1.1 KB

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2003-05-05 16:31:53 Re: Looking for a cheap upgrade (RAID)
Previous Message Rod Taylor 2003-05-05 13:33:05 Re: Indices are not used by the optimizer