Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g11LJDl65645 for ; Fri, 1 Feb 2002 16:19:13 -0500 (EST) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 16Wl5L-000IPl-0V; Fri, 1 Feb 2002 21:19:04 +0000 Received: from localhost.localdomain (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.12.1/8.12.1/Debian -5) with ESMTP id g11LJ41N007193; Fri, 1 Feb 2002 21:19:04 GMT Subject: Re: Sample database for testing? From: Oliver Elphick To: bangh Cc: Andy Ruhl , pgsql-admin@postgresql.org In-Reply-To: <3C5AFA10.B0B664FC@baileylink.net> References: <3C5AFA10.B0B664FC@baileylink.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oONsnB6SPGhGN4TaBuMI" X-Mailer: Evolution/1.0.1 Date: 01 Feb 2002 21:19:03 +0000 Message-Id: <1012598344.3181.29.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200202/12 X-Sequence-Number: 3174 --=-oONsnB6SPGhGN4TaBuMI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-02-01 at 20:26, bangh wrote: > There is a database template1 you can play with. >=20 > If there is no table in template1, you can create one by: >=20 > 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=20 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. --=20 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=20=20 transformed by the renewing of your mind, that ye may=20 prove what is that good, and acceptable, and perfect,=20 will of God." Romans 12:2=20 --=-oONsnB6SPGhGN4TaBuMI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8WwZHYU1MND4dDBwRAsmdAJ9FWxUY7Msgf4aALcIJVbSmd2y5KgCeOmK5 op64bAb9YWOBVltmr4nYUOI= =3AQZ -----END PGP SIGNATURE----- --=-oONsnB6SPGhGN4TaBuMI--