too many versions... message

65 views
Skip to first unread message

Learn Softwares

unread,
Feb 20, 2024, 1:13:44 PM2/20/24
to firebird...@googlegroups.com
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?

--

Atenciosamente,

Learn Softwares ®

Gabor Boros

unread,
Feb 20, 2024, 2:13:10 PM2/20/24
to firebird...@googlegroups.com

Mark Rotteveel

unread,
Feb 21, 2024, 1:56:07 AM2/21/24
to firebird...@googlegroups.com
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

Luigi Siciliano

unread,
Feb 21, 2024, 3:44:14 AM2/21/24
to firebird...@googlegroups.com
Il 21/02/2024 07:55, 'Mark Rotteveel' via firebird-support ha scritto:
> 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.
>
Those in memory updates can affect performance?

Thanks

--
Luigi
--------------------------

Ann Harrison

unread,
Feb 21, 2024, 11:24:01 AM2/21/24
to firebird...@googlegroups.com
Very slightly.  Records are compressed before storage.  Decompression
is about the same cost as decompression plus bringing the format up
to the current verison.  If a record from an earlier format is updated, 
obviously, it's written in the new format.



--
Luigi
--------------------------

--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/32c10dc2-d343-02a0-f407-87c27889ef8e%40tiscalinet.it.
Reply all
Reply to author
Forward
0 new messages