Skip to content

[19.0][IMP] database_cleanup: Add more tables to the purge tables blacklist#3670

Open
quoc-pn wants to merge 1 commit into
OCA:19.0from
komit-consulting:19.0-database_cleanup-add-tables-blacklist
Open

[19.0][IMP] database_cleanup: Add more tables to the purge tables blacklist#3670
quoc-pn wants to merge 1 commit into
OCA:19.0from
komit-consulting:19.0-database_cleanup-add-tables-blacklist

Conversation

@quoc-pn

@quoc-pn quoc-pn commented Jul 14, 2026

Copy link
Copy Markdown
Member

Adding signaling tables to the purge tables blacklist to prevent their purging.

  • orm_signaling_assets
  • orm_signaling_default
  • orm_signaling_groups
  • orm_signaling_registry
  • orm_signaling_routing
  • orm_signaling_stable
  • orm_signaling_templates

If one of these tables was dropped, the server error below will appear

2026-07-14 09:02:13,075 28425 ERROR ? odoo.sql_db: bad query: b'SELECT ( SELECT max(id) FROM "orm_signaling_registry"), ( SELECT max(id) FROM "orm_signaling_default"), ( SELECT max(id) FROM "orm_signaling_assets"), ( SELECT max(id) FROM "orm_signaling_stable"), ( SELECT max(id) FROM "orm_signaling_templates"), ( SELECT max(id) FROM "orm_signaling_routing"), ( SELECT max(id) FROM "orm_signaling_groups")'
ERROR: relation "orm_signaling_registry" does not exist
LINE 1: SELECT ( SELECT max(id) FROM "orm_signaling_registry"), ( SE...
                                     ^

2026-07-14 09:02:13,075 28425 WARNING ? odoo.http: Database or registry unusable, trying without
Traceback (most recent call last):
  File "/odoo/odoo/http.py", line 2250, in _serve_db
    self.registry = registry.check_signaling(cr)
                    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^
  File "/odoo/odoo/orm/registry.py", line 1070, in check_signaling
    db_registry_sequence, db_cache_sequences = self.get_sequences(cr)
                                               ~~~~~~~~~~~~~~~~~~^^^^
  File "/odoo/odoo/orm/registry.py", line 1057, in get_sequences
    cr.execute(SQL("SELECT %s", signaling_selects))
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/odoo/odoo/sql_db.py", line 433, in execute
    self._obj.execute(query, params)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
psycopg2.errors.UndefinedTable: relation "orm_signaling_registry" does not exist
LINE 1: SELECT ( SELECT max(id) FROM "orm_signaling_registry"), ( SE...
                                     ^

If you accidentally drop those tables, restart Odoo to recreate them.

@pedrobaeza

Copy link
Copy Markdown
Member

Can you document with links where that tables are used?

@quoc-pn

quoc-pn commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Can you document with links where that tables are used?

Sure, I added the error I faced after purging those tables in the PR description.

@pedrobaeza pedrobaeza added this to the 19.0 milestone Jul 14, 2026
@pedrobaeza pedrobaeza changed the title [IMP] database_cleanup: Add more tables to the purge tables blacklist [19.0][IMP] database_cleanup: Add more tables to the purge tables blacklist Jul 14, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants