Re: Seq scan

From: Diogo Biazus <diogo(at)ikono(dot)com(dot)br>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Seq scan
Date: 2002-08-15 20:58:40
Message-ID: 3D5C1600.8030807@ikono.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:

>On Thu, 15 Aug 2002, Stephan Szabo wrote:
>
>
>
>>On Thu, 15 Aug 2002, Diogo Biazus wrote:
>>
>>
>>
>>>Hi everybody.
>>>Im trying to execute a simple UPDATE query on a table with 450000 rows
>>>using an index in the where clause.
>>>
>>>Example:
>>>UPDATE table SET field = null WHERE field = 12345
>>>( NOTICE: Field has an index )
>>>
>>>
>>If field is int8, you'll need to either quote the number or
>>cast it to int8 (either ::int8 or cast(12345 as int8) should work).
>>
>>
>
>(Slow today) The same is true for int2 (which is despite my braindamage
>today large enough to hold 12345) except that you cast to int2.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>
>
>
Yes, the field is int8 and now its working fine (with the quotes),
thanks for the help.

Diogo Biazus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-08-15 21:27:02 Re: OID with %ROWTYPE in PLPGSQL
Previous Message Jean-Luc Lachance 2002-08-15 20:17:33 Re: OID with %ROWTYPE in PLPGSQL