• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 13989101108

21 Mar 2025 09:54AM UTC coverage: 75.056% (+0.02%) from 75.041%
13989101108

push

github

web-flow
Prevent dropping of critical system views, functions, and procedures (#3480)

This commit introduces restrictions to prevent the dropping of essential system views, functions, and procedures within the dbo schema for both TSQL and PSQL dialects:

    sp_addlinkedserver
    syspolicy_configuration
    syspolicy_system_health_state
    fn_syspolicy_is_automation_enabled

Generalized the restriction mechanism for handling all kinds of objects.

Note: Only superusers can drop these restricted objects and since this couldn't be added in jdbc test, adding the output here for more info:

-- psql
babelfish_db=# DROP VIEW msdb_dbo.syspolicy_system_health_state;
DROP VIEW

Task: JIRA-5145, JIRA-5146

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>

35 of 39 new or added lines in 2 files covered. (89.74%)

228 existing lines in 3 files now uncovered.

47584 of 63398 relevant lines covered (75.06%)

187743.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.64
/contrib/babelfishpg_common/src/typecode.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc