mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description - Invalidate Collection cache trigger was missing in OSS - Explain should show IXScan if the index had object_id - ErrCode 16020 should be Location16020 and not EXPRESSIONTAKESEXACTLYNARGS - row_get_bson should be prefixed with schema. ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses several bugs identified from OSS and incidents, including updates to SQL functions, error codes, and triggers. - Added new SQL functions and triggers in `collection_metadata_functions--1.23-0.sql` and updated `collection_metadata_functions--latest.sql`. - Modified `PostgresExplainHelper.cs` to refine the condition for reporting `COLLSCAN`. - Updated error codes in `helio_errors.h`, `mongoerrors.csv`, and `helio_codes.txt`. - Adjusted SQL queries in `users.c` and `create_indexes_background.c` to use `CoreSchemaName`. - Added a new trigger in `collection_metadata--1.23-0.sql` and included it in `pg_helio_api--1.22-0--1.23-0.sql` and `pgmongo--1.22-0--1.23-0.sql`.
3 lines
171 B
SQL
3 lines
171 B
SQL
CREATE TRIGGER collections_trigger
|
|
AFTER UPDATE OR DELETE ON helio_api_catalog.collections
|
|
FOR STATEMENT EXECUTE FUNCTION helio_api_internal.collection_update_trigger(); |