![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
... If a partitioned table (x) with sufficient data is queried with: select count(distinct pid) from x; I get the correct number (500000) for the data in the table. However if I use essentially the same query to populate a second table with: insert into y(pid) select distinct pid from x Instead of the 500000 distinct pids I get 1496741 rows inserted. BTW. Table x has 1500000 rows. |
#5
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Karl Schendel Sent: 28 April 2011 13:08 To: Ingres and related product discussion forum Subject: Re: [Info-Ingres] Can you identify this bug? On Apr 28, 2011, at 4:09 AM, Martin Bowes wrote: ... If a partitioned table (x) with sufficient data is queried with: select count(distinct pid) from x; I get the correct number (500000) for the data in the table. However if I use essentially the same query to populate a second table with: insert into y(pid) select distinct pid from x Instead of the 500000 distinct pids I get 1496741 rows inserted. BTW. Table x has 1500000 rows. I wonder if it has something to do with the defaulting of the other two "y" columns. What you're really doing (in the testcase) is insert into static_pids (pid,action,action_date) select distinct pid,'I',date('now') from x; It could be that the bug that was fixed had something to do with getting the sort list buggered up somehow. I don't know why it would only happen with partitioned tables though. I don't recall this symptom coming up, whatever the cause might have been. Karl _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
![]() |
| Thread Tools | |
| Display Modes | |
| |