Re: help with query: advanced ORDER BY... - Mailing list pgsql-novice

From Michael Glaesemann
Subject Re: help with query: advanced ORDER BY...
Date
Msg-id 95C07B27-2318-4409-8C59-3BB0F8ABF436@myrealbox.com
Whole thread Raw
In response to Re: help with query: advanced ORDER BY...  (<me@alternize.com>)
List pgsql-novice
On Jan 15, 2006, at 19:53 , <me@alternize.com> <me@alternize.com> wrote:

>> Something you may consider doing is creating a view that masks the
>> screen_number in those cases, something like
>>
>> create view schedule_public_view as
>> select theater_id
>> , screen_date
>> , screen_time
>> , case when no_screen_number then 0 else screen_number  end as
>> screen_number
>> , movie_name
>> from schedules;
>
> wouldn't this be the same problem: pgsql not using the index for
> screen_number anymore?

That may be. Only way to be sure is to try it. (And I'm not
knowledgeable enough to know for sure.)

Michael Glaesemann
grzm myrealbox com




pgsql-novice by date:

Previous
From:
Date:
Subject: Re: help with query: advanced ORDER BY...
Next
From: "Christian Hofmann"
Date:
Subject: Help with query