Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find relation tx_calls #3992

Closed
samuel-rufi opened this issue Nov 11, 2024 · 0 comments · Fixed by #3999
Closed

Cannot find relation tx_calls #3992

samuel-rufi opened this issue Nov 11, 2024 · 0 comments · Fixed by #3999
Assignees
Labels
infrastructure Issues related to the Infrastructure Team

Comments

@samuel-rufi
Copy link
Member

samuel-rufi commented Nov 11, 2024

Bug description

The docker postgres logs mention following issue with the Indexer tx_calls relation. It seems like that it's unable to find the relation. There however exist more detailed tx_calls_{fun,mod,pkg} indicating that the query needs to be updated:

postgres  | 2024-11-11 11:01:11.985 UTC [450] ERROR:  relation "tx_calls" does not exist at character 288
postgres  | 2024-11-11 11:01:11.985 UTC [450] STATEMENT:  INSERT INTO move_calls
postgres  | 	    SELECT
postgres  | 	        m.tx_sequence_number AS transaction_sequence_number,
postgres  | 	        c.sequence_number AS checkpoint_sequence_number,
postgres  | 	        c.epoch AS epoch,
postgres  | 	        m.package AS move_package,
postgres  | 	        m.module AS move_module,
postgres  | 	        m.func AS move_function
postgres  | 	    FROM tx_calls m
postgres  | 	    INNER JOIN transactions t
postgres  | 	        ON m.tx_sequence_number = t.tx_sequence_number
postgres  | 	    INNER JOIN checkpoints c
postgres  | 	        ON t.checkpoint_sequence_number = c.sequence_number
postgres  | 	    WHERE m.tx_sequence_number >= 72000 AND m.tx_sequence_number < 80000
postgres  | 	    ON CONFLICT (transaction_sequence_number, move_package, move_module, move_function) DO NOTHING;
postgres  |
postgres  | 2024-11-11 11:01:12.461 UTC [450] ERROR:  relation "tx_calls" does not exist at character 288
postgres  | 2024-11-11 11:01:12.461 UTC [450] STATEMENT:  INSERT INTO move_calls
postgres  | 	    SELECT
postgres  | 	        m.tx_sequence_number AS transaction_sequence_number,
postgres  | 	        c.sequence_number AS checkpoint_sequence_number,
postgres  | 	        c.epoch AS epoch,
postgres  | 	        m.package AS move_package,
postgres  | 	        m.module AS move_module,
postgres  | 	        m.func AS move_function
postgres  | 	    FROM tx_calls m
postgres  | 	    INNER JOIN transactions t
postgres  | 	        ON m.tx_sequence_number = t.tx_sequence_number
postgres  | 	    INNER JOIN checkpoints c
postgres  | 	        ON t.checkpoint_sequence_number = c.sequence_number
postgres  | 	    WHERE m.tx_sequence_number >= 8000 AND m.tx_sequence_number < 16000
postgres  | 	    ON CONFLICT (transaction_sequence_number, move_package, move_module, move_function) DO NOTHING;
@samuel-rufi samuel-rufi added the infrastructure Issues related to the Infrastructure Team label Nov 11, 2024
@samuel-rufi samuel-rufi added this to the Testnet Launch v1.0.0-rc milestone Nov 11, 2024
@samuel-rufi samuel-rufi self-assigned this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Issues related to the Infrastructure Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant