On 20/02/2024 19:13, Learn Softwares wrote:
> I have a table in Firebird with 319 fields and now I need to add 3 more
> fields, but I receive the message "too many versions". I also tried to
> delete some fields and I also receive this message. What can it be? How
> to solve?
It sound like your software is making a lot of DDL changes to your
tables. A table can only be structurally modified 256 times. If you
exceed that count, you need to backup and restore your database with gbak.
This isn't about the number of fields or anything, but if you execute
certain ALTER TABLE commands, the format version of the table is
incremented, and this counter is 8-bit. These format versions are used
for the table data that is stored. When structurally modifying a table,
old records are not updated, but instead when they are read, they are
upgraded in-memory from the format version they were stored in to the
current format version.
Mark
--
Mark Rotteveel