View Single Post

   
  #5 (permalink)  
Old 04-09-2008, 11:00 AM
Jorge Godoy
 
Posts: n/a
Default Re: Best approach for a "gap-less" sequence

Thomas Kellerer <spam_eater@gmx.net> writes:

> What do you do if a document gets deleted? Renumber the "following" documents
> so that no gaps are present in the already used ids?


There's no deletion possibility. A RULE sets a column named "active" to
"False" instead (I can set it manually or let the RULE do that for me...).

--
Jorge Godoy <jgodoy@gmail.com>

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Reply With Quote