From: chester c young <chestercyoung@yahoo.com>
To: Steve Midgley <public@misuse.org>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: Selecting rows with "static" ordering
Date: Thu, 26 Apr 2007 17:35:43 -0700 (PDT)
Message-ID: <1266.67652.qm@web54315.mail.yahoo.com> (raw)
In-Reply-To: <20070427001004.B5F5D9FBABA@postgresql.org>
> them in the order they are currently stored in that variable. So take
>
> for example this foreign application variable:
>
> ids = "3,2,5,1,4"
kludgy, but:
1. store your ids in a pg array
2. select from the array
3. on order by, write a function that takes the row.id and array as
parameters, returning the id offset into the array
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: chestercyoung@yahoo.com, public@misuse.org
Subject: Re: Selecting rows with "static" ordering
In-Reply-To: <1266.67652.qm@web54315.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox