Skip site navigation (1) Skip section navigation (2)

Re: select ... where <column>='' does a seqscan [auf Viren geprueft]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Silvio Matthes <silvio(dot)matthes(at)xcom(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: select ... where <column>='' does a seqscan [auf Viren geprueft]
Date: 2004-08-24 15:35:38
Message-ID: 4124.1093361738@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
Silvio Matthes <silvio(dot)matthes(at)xcom(dot)de> writes:
> I try to select the rows of a table where the content of a varchar-column 
> is empty ('') and PostgresQL is doing a seqscan.

If there are a very large number of rows with param_value='', it's
entirely possible that using an index to find them is counterproductive.

			regards, tom lane

In response to

Responses

pgsql-general by date

Next:From: Thilina GunasekaraDate: 2004-08-24 15:38:19
Subject: Re: [GENERAL] Dump and Restore
Previous:From: Paul ThomasDate: 2004-08-24 15:29:56
Subject: Re: [GENERAL] Dump and Restore

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group