Re: techniques for manual ordering of data ? - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: techniques for manual ordering of data ?
Date
Msg-id 20040508163641.GA7519@wolff.to
Whole thread Raw
In response to techniques for manual ordering of data ?  ("Peter Galbavy" <peter.galbavy@knowtion.net>)
List pgsql-sql
On Sat, Feb 07, 2004 at 10:47:37 -0000, Peter Galbavy <peter.galbavy@knowtion.net> wrote:
> 
> Here, a photograph may appear in multiple catalogue/collection places. What
> I want to do is to allow the admin to reorder the display by using + / -
> style buttons. My initial thought was to use an arbitrary "ordering" column,
> like old BASIC line numbers, which would be initially allocated in 10s or
> 100s, and then updating the value via the UI and occassionally applying a
> "renum" style function when the list gets uneven.

Numeric might be better for this than int, since you can keep subdividing
without having to renumber. If you hide the real numbers from the users,
you might not ever need to do a bulk renumber.


pgsql-sql by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: CONTEXT on PL/pgSQL
Next
From: Denis Braekhus
Date:
Subject: Re: not really SQL but I need info on BLOBs