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

Tracking: System Information Functions #14003

Open
12 of 65 tasks
Tracked by #14004
KeXiangWang opened this issue Dec 15, 2023 · 0 comments
Open
12 of 65 tasks
Tracked by #14004

Tracking: System Information Functions #14003

KeXiangWang opened this issue Dec 15, 2023 · 0 comments
Assignees
Milestone

Comments

@KeXiangWang
Copy link
Contributor

KeXiangWang commented Dec 15, 2023

To support more ORM tools, it's necessary to add more system information functions/expressions. Here's the corresponding list in Postgres.

Session Information Functions

  • Support current_catalog system column. #17117
  • current_database
  • current_query
  • current_role
  • current_schema
  • current_schemas
  • current_user
  • inet_client_addr
  • inet_client_port
  • inet_server_addr
  • inet_server_port
  • pg_backend_pid
  • pg_conf_load_time
  • pg_is_other_temp_schema
  • pg_listening_channels
  • pg_my_temp_schema
  • pg_postmaster_start_time
  • pg_trigger_depth
  • session_user
  • user

Access Privilege Inquiry Functions

  • TODO

Schema Visibility Inquiry Functions

  • TODO

System Catalog Information Functions

  • format_type(type_oid, typemod)
  • pg_get_constraintdef(constraint_oid)
  • pg_get_constraintdef(constraint_oid, pretty_bool)
  • pg_get_expr(pg_node_tree, relation_oid)
  • pg_get_expr(pg_node_tree, relation_oid, pretty_bool)
  • pg_get_functiondef(func_oid)
  • pg_get_function_arguments(func_oid) (not used by sqlalchemy)
  • pg_get_function_identity_arguments(func_oid) (not used by sqlalchemy)
  • pg_get_function_result(func_oid) (not used by sqlalchemy)
  • pg_get_indexdef(index_oid) feat(expr): support pg_get_indexdef #14073
  • pg_get_indexdef(index_oid, column_no, pretty_bool) feat(expr): support pg_get_indexdef #14073
  • pg_get_keywords() setof (not used by sqlalchemy)
  • pg_get_ruledef(rule_oid) (not used by sqlalchemy)
  • pg_get_ruledef(rule_oid,
  • pg_get_serial_sequence(table_name, column_name)
  • pg_get_triggerdef(trigger_oid) (not used by sqlalchemy)
  • pg_get_triggerdef(trigger_oid, (not used by sqlalchemy)
  • pg_get_userbyid(role_oid) (not used by sqlalchemy)
  • pg_get_viewdef(view_name)
  • pg_get_viewdef(view_name, pretty_bool)
  • pg_get_viewdef(view_oid) feat(catalog): add pg_get_viewdef #14336
  • pg_get_viewdef(view_oid, pretty_bool)
  • pg_get_viewdef(view_oid, wrap_column_int)
  • pg_options_to_table(reloptions)
  • pg_tablespace_databases(tablespace_oid)
  • pg_tablespace_location(tablespace_oid)
  • pg_typeof(any)
  • collation for (any)
  • to_regclass(rel_name)
  • to_regproc(func_name)
  • to_regprocedure(func_name)
  • to_regoper(operator_name)
  • to_regoperator(operator_name)
  • to_regtype(type_name)
  • to_regnamespace(schema_name)
  • to_regrole(role_name)

System Catalog Information Functions used by SQLAlchemy 1.4.x

  • format_type(type_oid, typemod)
  • pg_get_constraintdef(constraint_oid)
  • pg_get_constraintdef(constraint_oid, pretty_bool)
  • pg_get_expr(pg_node_tree, relation_oid)
  • pg_get_expr(pg_node_tree, relation_oid, pretty_bool)
  • pg_get_serial_sequence(table_name, column_name)
  • pg_get_viewdef(view_name)
@github-actions github-actions bot added this to the release-1.6 milestone Dec 15, 2023
@KeXiangWang KeXiangWang changed the title Tracking: jsonb operations Tracking: system information functions Dec 15, 2023
@KeXiangWang KeXiangWang self-assigned this Dec 15, 2023
@KeXiangWang KeXiangWang changed the title Tracking: system information functions Tracking: System Information Functions Dec 15, 2023
@KeXiangWang KeXiangWang linked a pull request Dec 20, 2023 that will close this issue
9 tasks
@KeXiangWang KeXiangWang removed a link to a pull request Dec 20, 2023
9 tasks
@KeXiangWang KeXiangWang modified the milestones: release-1.6, release-1.7 Jan 10, 2024
@KeXiangWang KeXiangWang modified the milestones: release-1.7, release-1.9 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant