Re: Is it possible to make the order of output the same as the order of input parameters? - Mailing list pgsql-general

From David Fetter
Subject Re: Is it possible to make the order of output the same as the order of input parameters?
Date
Msg-id 20100602152408.GF6953@fetter.org
Whole thread Raw
In response to Re: Is it possible to make the order of output the same as the order of input parameters?  ("m. hvostinski" <makhvost@gmail.com>)
List pgsql-general
On Wed, Jun 02, 2010 at 11:06:06AM -0400, m. hvostinski wrote:
> Thanks to all for the feedback.  I keep getting impressed by how
> flexible PostgreSQL is.
>
> Any ideas which query should perform better?  I put together all the
> suggested approaches below.

Testing beats theorizing any day.  The array-based approaches are
there pretty much for convenience, i.e. for not having to input the
numbers more than once, as they could easily get mistyped if you need
to repeat them.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

pgsql-general by date:

Previous
From: Yeb Havinga
Date:
Subject: Re: Is it possible to make the order of output the same as the order of input parameters?
Next
From: "Michael Diener"
Date:
Subject: sum multiple tables gives wrong answer?