Wilton <wilton.wonrath@xxxxxxxxxxxxxxxx> writes: > Hi, > > Which is the correct way to obtain a continue sequence without fail (hole/gap) > for a composite-id ? http://www.google.com.br/search?q=gapless+sequence+postgresql Since the first hits -- at Varlena -- aren't accessible you can use google's cache: http://209.85.165.104/search?q=cache:wCm4AMkEbA4J:www.varlena.com/GeneralBits/130.php+gapless+sequence+postgresql -- Jorge Godoy <jgodoy@xxxxxxxxx>