Re: techniques for manual ordering of data ?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Peter Galbavy <peter(dot)galbavy(at)knowtion(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: techniques for manual ordering of data ?
Date: 2004-05-08 16:36:41
Message-ID: 20040508163641.GA7519@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, Feb 07, 2004 at 10:47:37 -0000,
Peter Galbavy <peter(dot)galbavy(at)knowtion(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message elein 2004-05-08 21:37:08 Adding MERGE to the TODO list (resend with subject)
Previous Message Kornelije Rabuzin 2004-05-08 09:54:53 Re: SELECT - ORDER BY Croatian characters ....