Em 24/03/15, Matheus Saraiva<matheus.sara...@gmail.com> escreveu: > No meu ponto de vista bigint e bigserial são necessários quando, por > exemplo, temos uma chave artificial que pode crescer de forma mais > rápida que o normal. > Além desse caso, quais seriam os outros casos em que eles são uteis? > > Aproveitando esse tema, alguém aqui na comunidade já atingiu o limite do > integer com chaves artificiais? O que acontece e o que fazer? >
Depende de como foi criada a SEQUENCE, particularmente a opção CYCLE / NO CYCLE: " The CYCLE option allows the sequence to wrap around when the maxvalue or minvalue has been reached by an ascending or descending sequence respectively. If the limit is reached, the next number generated will be the minvalue or maxvalue, respectively. If NO CYCLE is specified, any calls to nextval after the sequence has reached its maximum value will return an error. If neither CYCLE or NO CYCLE are specified, NO CYCLE is the default." http://www.postgresql.org/docs/current/interactive/sql-createsequence.html Osvaldo _______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral