Re: Seq scan

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


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).

In response to

  • Seq scan at 2002-08-15 19:35:19 from Diogo Biazus

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-08-15 19:33:53 Re: Seq scan
Previous Message Moritz Sinn 2002-08-15 18:26:46 writing own cast