Re: Update big table

From: bricklen <bricklen(at)gmail(dot)com>
To: Haiming Zhang <Haiming(dot)Zhang(at)redflex(dot)com(dot)au>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Update big table
Date: 2013-07-15 14:37:10
Message-ID: CAGrpgQ_hAmRSaNYwi_oU9kN9A-6=xBjksy6TQmv+7DAAhNLDow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 15, 2013 at 6:08 AM, Haiming Zhang <Haiming(dot)Zhang(at)redflex(dot)com(dot)au
> wrote:

> I run my query using JOIN for two hours, and did not get it done. Here is
> my query:
>
> update table1 set col1 = true from table2 where table1.event_id =
> table2.event_id
>

Did you already post the query plan from "EXPLAIN update table1 set col1 =
true from table2 where table1.event_id = table2.event_id" ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message AI Rumman 2013-07-15 14:58:34 last_vacuum field is not updating
Previous Message guxiaobo1982 2013-07-15 13:40:30 Re: Reply: [GENERAL] 回复: [GENERAL] Can't create plpython language