Re: update from select

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: update from select
Date: 2007-10-29 10:45:29
Message-ID: 20071029104529.GB16653@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am Mon, dem 29.10.2007, um 10:18:38 +0100 mailte dev(at)kbsolutions(dot)ch folgendes:
>
> WHERE table1.column1 = temp_table.column1;

table1.column1 and temp_table.column1 have the same type?

>
>
>
> The select by it?s own takes around 1 second. The Update is around 120?000
> rows. I got an index on column1. The whole query needs around 16 minutes.

Show us the EXPLAIN ANALYSE - result.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2007-10-29 11:03:27 Re: update from select
Previous Message dev 2007-10-29 09:18:38 update from select