pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Peter Galbavy <peter.galbavy@knowtion.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: techniques for manual ordering of data ?
Date: Sat, 8 May 2004 11:36:41 -0500
Message-ID: <20040508163641.GA7519@wolff.to> (raw)
In-Reply-To: <007101c3ed67$cdab35f0$24e0a8c0@sonylaptop>
References: <007101c3ed67$cdab35f0$24e0a8c0@sonylaptop>

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.



view thread (3+ messages)

Message-ID: <20040508163641.GA7519@wolff.to>
Permalink:  ../20040508163641.GA7519@wolff.to/
Also on:    postgresql.org/message-id/20040508163641.GA7519@wolff.to

 · 

reply

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: bruno@wolff.to, peter.galbavy@knowtion.net
  Subject: Re: techniques for manual ordering of data ?
  In-Reply-To: <20040508163641.GA7519@wolff.to>

* 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