Re: Re: [Pgsql-ayuda] update exists

From: "Xavi Puig" <personal(at)xavihost(dot)com>
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Subject: Re: Re: [Pgsql-ayuda] update exists
Date: 2002-10-24 09:25:21
Message-ID: 20031023082522.93CDC6453F@smtp-01.servidoresdns.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Os adjunto explain con query ejemplo:

QUERY PLAN
Seq Scan on tab1 (cost=0.00..22726480.50 rows=133984 width=57)
Filter: (subplan)
SubPlan
-> Hash Join (cost=6.45..84.68 rows=1 width=16)
Hash Cond: ("outer".tab2 = "inner".col2)
-> Nested Loop (cost=0.00..78.09 rows=29 width=12)
-> Index Scan using tab1_col1 on tab1 (cost=0.00..2.01 rows=1 width=4)
Index Cond: (col1 = true)
-> Index Scan using btree_tab3_col2 on tab3 (cost=0.00..75.65 rows=34 width=8)
Index Cond: (tab3.col2 = "outer".col2)
-> Hash (cost=6.45..6.45 rows=1 width=4)
-> Index Scan using btree_tab2_col2 on tab2 (cost=0.00..6.45 rows=1 width=4)
Index Cond: (col2 = 'keyword1'::character varying)

Gracias

>On Wed, Oct 23, 2002 at 01:13:12PM +0100, personal(at)xavihost(dot)com wrote:
>
>> que estoy haciendo mal?
>
>Estas dando muy pocos detalles. Necesitamos el EXPLAIN por lo menos.
>
>(Ojo, los discos duros no proveen acceso ni escritura instantanea, se
>toman su tiempo)
>
>--
>Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
>"En las profundidades de nuestro inconsciente hay una obsesiva necesidad
>de un universo lgico y coherente. Pero el universo real se halla siempre
>un paso ms all de la lgica" (Irulan)

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Xavi Puig 2002-10-24 16:15:05 Re: Re: Re: [Pgsql-ayuda] update exists
Previous Message Xavi Puig 2002-10-23 22:38:08 [Pgsql-ayuda] update where exists( ......)