Re: how to efficiently update tuple in many-to-many relationship?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Drew Wilson <drewmwilson(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: how to efficiently update tuple in many-to-many relationship?
Date: 2007-04-09 21:43:42
Message-ID: 14019.1176155022@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Drew Wilson <drewmwilson(at)gmail(dot)com> writes:
> I have 2 tables (A,B) joined in a many-to-many relationship via a
> join table ("membership"), where updating table A based on table B
> takes a very long time.
> ...
> -> Function Scan on a (cost=0.00..12.50 rows=1000 width=4)

I think you've left out some relevant details ... there's nothing
in what you said about a set-returning function ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Craig A. James 2007-04-09 21:57:35 Re: DELETE with filter on ctid
Previous Message Merlin Moncure 2007-04-09 21:36:47 Re: join to view over custom aggregate seems like it should be faster