From: Oliver Elphick <olly@lfix.co.uk>
To: bangh <banghe@baileylink.net>
Cc: Andy Ruhl <acruhl@sdf.lonestar.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Sample database for testing?
Date: 01 Feb 2002 21:19:03 +0000
Message-ID: <1012598344.3181.29.camel@linda> (raw)
In-Reply-To: <3C5AFA10.B0B664FC@baileylink.net>
References: <Pine.NEB.4.33.0201260404390.22671-100000@sdf.lonestar.org>
<3C5AFA10.B0B664FC@baileylink.net>
On Fri, 2002-02-01 at 20:26, bangh wrote:
> There is a database template1 you can play with.
>
> If there is no table in template1, you can create one by:
>
> psql template1
> psql> create table mytable (
> psql> mydate datetime,
> psql> mymem text);
> psql> insert into mytable values('now', 'I am doing this today');
> psql> select * from mytable;
> psql>\q;
If you do this, you will have mytable in every database you create
thereafter. It is not called a template for no reason! template1 is
copied in its entirety into every new database when it is created. (And
so the rest of the advice is redundant, too.)
A better choice is to run the regression tests and use the regression
database for your experiments, since it will have a lot of tables
already containing data.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
"And be not conformed to this world; but be ye
transformed by the renewing of your mind, that ye may
prove what is that good, and acceptable, and perfect,
will of God." Romans 12:2
Attachments:
signature.asc (application/pgp-signature, 231B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: olly@lfix.co.uk, banghe@baileylink.net, acruhl@sdf.lonestar.org
Subject: Re: Sample database for testing?
In-Reply-To: <1012598344.3181.29.camel@linda>
References: <Pine.NEB.4.33.0201260404390.22671-100000@sdf.lonestar.org> <3C5AFA10.B0B664FC@baileylink.net> <1012598344.3181.29.camel@linda>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox