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

[CBRD-24907] Add system views to consolidate information from various database objects #4699

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

hgryoo
Copy link
Member

@hgryoo hgryoo commented Sep 19, 2023

http://jira.cubrid.org/browse/CBRD-24907

The following views are added in this PR.

  • DB_DBA_OBJECTS: describes all objects in the database. Only DBA user is able to access this view
  • DB_USER_OBJECTS: describes all objects owned by the current user. This view does not display the OWNER column.
  • DB_ALL_OBJECTS: describes all objects accessible to the current user.

hornetmj and others added 13 commits June 20, 2023 19:39
http://jira.cubrid.org/browse/CBRD-24807

- Rename FUNC_TYPE -> FUNC_CODE
- Move FUNC_CODE from storage_common.h to a new file
- Rename pt_eval_function_type_old () -> pt_eval_function_type_aggregate (): only aggregate functions are not migrated to the new routine yet (func_type::Node class)
- Trivial changes
…user before execution (CUBRID#4548)

http://jira.cubrid.org/browse/CBRD-24903

- Add '_db_stored_procedure' in the checking list of au_drop_user()
- Remove redundant error message part

cherry-picked from CUBRID#4508.
… of catalog names (CUBRID#4563)

http://jira.cubrid.org/browse/CBRD-24929

Add a class to provide a unified routine to compare identifiers.
- string_utility.hpp: For C++ STL's string comparison, lowercase_hash and lowercase_compare structs are added, string_set_ci_lower is defined
- identifier_store.hpp: the constructor gets a set of identifier lists and provides is_exists () API.
Refactor comparison routine related to system catalog names
- schema_system_catalog.[cpp|hpp]: Use the new API of identifier_store for system catalogs
- remove legacy duplicated routine (util_common.c, utility.h, load_server_loader.cpp...)
@hgryoo hgryoo self-assigned this Sep 19, 2023
@hgryoo
Copy link
Member Author

hgryoo commented Sep 27, 2023

About generated column, the child tables of a partition need to be set 'Y'. But there is no such a information in the _db_class.
We need to discuss about it.

'PUBLIC' AS [owner], \
[s].[name] AS [object_name], \
'serial' AS [object_type], \
'N' AS [generated] \
Copy link
Contributor

@beyondykk9 beyondykk9 Oct 4, 2023

Choose a reason for hiding this comment

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

db_serial can include generated attributes for "AUTO_INCREMENT", however, we cannot identify it.

Copy link
Member Author

Choose a reason for hiding this comment

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

IMO, along with partition tables, The auto_increment information also should be added in system catalog too.

@hgryoo hgryoo changed the base branch from develop-fig-cake to develop October 17, 2023 02:56
@hornetmj hornetmj removed their request for review October 17, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants