Re: can't win

From: Jeff Rogers <jrogers(at)findlaw(dot)com>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: can't win
Date: 2004-06-18 20:40:53
Message-ID: 200406182040.i5IKer928680@findlaw.com.
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> Is there any way I can get the best of both worlds?
>
> Hmm, how about a multiple column index on (topic, created)? You might
> need to use
> select * from articles where topic='Example' order by topic desc, created
> desc limit 5;
> to get it to use the index though.

That works beautifully, thanks!

-J

Browse pgsql-general by date

  From Date Subject
Next Message Jim Seymour 2004-06-18 20:41:46 Re: INSERT ON DUPLICATE KEY UPDATE
Previous Message Tom Lane 2004-06-18 20:37:54 Re: PgSQL shut down