Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: BUG #4204: ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 9436 of 10966
Post > Topic >>

Re: BUG #4204: COPY to table with FK has memory leak

by stark@[EMAIL PROTECTED] (Gregory Stark) May 28, 2008 at 04:47 PM

"Tom Lane" <tgl@[EMAIL PROTECTED]
> writes:

> Gregory Stark <stark@[EMAIL PROTECTED]
> writes:
>> "Tom Lane" <tgl@[EMAIL PROTECTED]
> writes:
>>> This is expected to take lots of memory because each
row-requiring-check
>>> generates an entry in the pending trigger event list.
>
>> Hm, it occurs to me that we could still do a join against the pending
event
>> trigger list... I wonder how feasible it would be to store the pending
trigger
>> event list in a tem****ary table instead of in ram.
>
> We could make that list spill to disk, but the problem remains that
> verifying the rows one at a time will take forever.

Well I was thinking if we did a join between a tem****ary table and the fk
target then it wouldn't have to be a one-by-one operation. It could be a
merge
join if the planner thought that was better. How to get accurate stats
into
the planner at that point would be a missing detail though.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's 24x7 Postgres sup****t!

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 1 Posts in Topic:
Re: BUG #4204: COPY to table with FK has memory leak
stark@[EMAIL PROTECTED]   2008-05-28 16:47:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 12:22:23 CST 2008.