From: Christoph Frick <frick@sc-networks.com>
To: Felix Zhang <felix.zhang.2005@gmail.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: [NOVICE] How to split a table?
Date: Tue, 17 Oct 2006 11:26:16 +0200
Message-ID: <20061017092616.GH3822@byleth.sc-networks.de> (raw)
In-Reply-To: <c44bd2680610170039j3342e874ue78bc71a701f76e0@mail.gmail.com>
References: <c44bd2680610170039j3342e874ue78bc71a701f76e0@mail.gmail.com>
On Tue, Oct 17, 2006 at 03:39:21PM +0800, Felix Zhang wrote:
> I want to split a table to 2 small tables. The 1st one contains 60%
> records which are randomly selected from the source table. How to do
> it?
i do my A/B-Group splitting usually by &1 the serial of the table.
assuming, that there are no irregularities in the process of creating
your entries, this should give a 50/50 split, which is reuseable for
future things and there never is a intersection of the two groups.
--
cu
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: frick@sc-networks.com, felix.zhang.2005@gmail.com, pgsql-general@postgresql.org, pgsql-novice@postgresql.org
Subject: Re: [NOVICE] How to split a table?
In-Reply-To: <20061017092616.GH3822@byleth.sc-networks.de>
* 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