Odoo Help

0

Is there a limit in the number of columns in a model/table?

By
gennaooep
on 3/22/13, 12:18 PM 1,929 views

hi,

when I run my server I ve error following :

2013-03-22 11:05:13,309 1124 ERROR ptfmedicalera openerp.sql_db: bad query: ALTER TABLE "res_partner" ADD COLUMN "date_inscript" timestamp Traceback (most recent call last): File "C:\Eclipse\workspace\epsv36\PTFMedicaleRA\openerp\sql_db.py", line 227, in execute res = self._obj.execute(query, params) OperationalError: ERREUR: les tables peuvent avoir au plus 1600 colonnes

2013-03-22 11:05:13,334 1124 ERROR ptfmedicalera openerp.netsvc: ERREUR: les tables peuvent avoir au plus 1600 colonnes Traceback (most recent call last):

OperationalError: ERREUR: les tables peuvent avoir au plus 1600 colonnes

help me

One of your model as more that 1600 columns. 1600 is the maximum number of columns that PostgreSQL can support complied in a strandard way on 32 bit systems. Answer : I do not know if it is a bug or a bad design of one of your model. If you have a lot of attributes to store on a model you may use the field.serializedor fields.sparse type or split you model.

gennaooep
on 4/10/13, 10:39 AM
1

Nicolas Bessi

--Nicolas Bessi--
1600
| 5 7 8
Lausanne, Switzerland
--Nicolas Bessi--
Nicolas Bessi
On 3/22/13, 12:40 PM

One of your model as more that 1600 columns. 1600 is the maximum number of columns that PostgreSQL can support complied in a strandard way on 32 bit systems.

I do not know if it is a bug or a bad design of one of your model. If you have a lot of attributes to store on a model you may use the field.serializedor fields.sparse type or split you model.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 3/22/13, 12:18 PM
Seen: 1929 times
Last updated: 3/16/15, 8:10 AM