Re: Avoid querying a specific field - how?

From: "Ibrahim Tekin" <itekin(at)gmail(dot)com>
To: "Stefan Schwarzer" <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Avoid querying a specific field - how?
Date: 2006-02-21 15:32:07
Message-ID: e4dcba670602210732h4472e9b6lbba9f5d09058d6dd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

i may i misunderstood your question but it seems to me, partial indexes will
work for you.
check this example:
http://www.postgresql.org/docs/8.1/interactive/indexes-partial.html#INDEXES-PARTIAL-EX2

On 2/21/06, Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> wrote:
>
> Hi,
>
> does anyone know how to build a query that SELECTs all fields but not
> a specific one? I have a couple of tables, holding statistical
> information as well as the geospatial one (via Postgis). When I query
> the table I'd like to query only the statistical part - not the
> geospatial, which is not necessary and slows done incredibly the
> query. I searched a bit within the Postgres SQL domain. It seems
> there is an EXCEPT statement, but it seems that it works differently...
>
> Thanks for any help,
>
> Stef
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2006-02-21 17:06:39 Re: Avoid querying a specific field - how?
Previous Message Stefan Schwarzer 2006-02-21 11:55:02 Avoid querying a specific field - how?