# B-Tree index size limit with long translated text

**URL:** https://discuss.tryton.org/t/b-tree-index-size-limit-with-long-translated-text/9402
**Category:** Developer
**Created:** [September 21, 2026, 5:41pm UTC](https://discuss.tryton.org/t/b-tree-index-size-limit-with-long-translated-text/9402 "2026-09-21T17:41:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gruenfischer](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@Gruenfischer](https://discuss.tryton.org/u/Gruenfischer)
#### Post date: [September 21, 2026, 5:41pm UTC](https://discuss.tryton.org/t/b-tree-index-size-limit-with-long-translated-text/9402/1 "2026-09-21T17:41:12Z")

</div>

Hi,

Tryton version: 8.0  
Database: PostgreSQL

When saving a longer translatable text, an HTML marketing email, PostgreSQL raises:

```auto
psycopg.errors.ProgramLimitExceeded:
index row size 2768 exceeds btree maximum 2704

```

The error occurs while writing the translated value to `ir_translation`.

Before assuming this is a bug, I would like to check whether I am missing a recommended configuration option or database/index setting for handling larger translated `Text` values.

Reproduction:

1. Use a field with `translate=True` in Marketing E-Mail.
2. Store a longer HTML/text value.
3. Save the record.
4. PostgreSQL rejects the write with the B-Tree index row size error.

Is this expected with the default Tryton 8.0 schema, or is there a configuration/migration step I may have missed?

Regards, Jakob

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 22, 2026, 6:01am UTC](https://discuss.tryton.org/t/b-tree-index-size-limit-with-long-translated-text/9402/2 "2026-09-22T06:01:16Z")

</div>

See [Add size limit on translated fields (#12713) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/12713) and [Use report to store marketing automation Activity's content (#13436) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/13436)

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [September 22, 2026, 7:27am UTC](https://discuss.tryton.org/t/b-tree-index-size-limit-with-long-translated-text/9402/3 "2026-09-22T07:27:15Z")

</div>

It can be solved by [using a btree\_gin](https://foss.heptapod.net/tryton/tryton/-/work_items/12480) index which has no size limit but before going futher I will recomend reading this topic which contains all the relevant information:

> [@Indexing crash on migration 6.8](https://discuss.tryton.org/t/indexing-crash-on-migration-6-8/6529/2):
>
> I do not think it is really usable to have large Text field translatable. With [Support btree\_gin extension (#12480) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue12480) GIN index could be used for such case which has no limit.
