Re: Question insert data - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Question insert data
Date
Msg-id 20050319145407.Y49962@megazone.bigpanda.com
Whole thread Raw
In response to Question insert data  (perico@12move.nl)
Responses Betr: Re: Question insert data
List pgsql-general
On Sat, 19 Mar 2005 perico@12move.nl wrote:

> Hi There,
>
> I've a problem with inserting data and I can't figure out what the problem
> is:
>
>
> what did I do:
>
>
> 1. I've a master table containing about 40000 records. A count(*) provides
> me the exact number.
>
> 2. I've create a table based on from the master. I copied a fraction from
> the master into the new table using a where clause (insert into ... select
> * from ... where a = b . The number of records copied is about 2553.

Define "based on". Do you mean CREATE TABLE AS or perhaps that the new
table inherits from the old one?  If the latter, you will see the rows in
the parent as well as the child if you do a select from the parent.

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Query performance problem
Next
From: Stephan Szabo
Date:
Subject: Re: TIME TO VOTE - comp.databases.pgsql ballot