From: | "GIROIRE Nicolas (COFRAMI)" <nicolas(dot)giroire(at)airbus(dot)com> |
---|---|
To: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | sort array optimisation in pl/perl |
Date: | 2005-03-24 14:49:38 |
Message-ID: | 1904E3EB39448246A7ECB76DF34A70B0036A4002@TOCOMEXC03 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I create an array which is result of query on postgresql database and then I
want to sort rows in a particular way (impossible by query on database).
My solution consists to put a rows (indice m+1) in a temporary other and
then move all element before indice n to m in rows with indice n+1 to m+1
and last i put my temporary variable to indice n.
I want to know if somebody know a better solution.
I think of 2 solutions but i don't success to apply :
- the first is to use list in which I could deplace references as a
chained list
- the second will be to deplace tab[n..m] to tab[n+1..m+1] in one
instruction as ada language
Is one of this solution exists and is better than my first ? If yes, can you
help me to implement ?
Best regards,
Nicolas
From | Date | Subject | |
---|---|---|---|
Next Message | Bill Moran | 2005-03-24 14:49:41 | Questions regarding interaction of stored functions and transactions |
Previous Message | Tom Lane | 2005-03-24 14:46:59 | Re: multi line text data/query ?bug? |