上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: #!/bin/bash # Source database credentials SRC_DB_HOST="localhost" SRC_DB_PORT="5442" SRC_DB_NAME="postgres" SRC_DB_USER="myuser" SRC_DB_PASS='mypwd' # 阅读全文
posted @ 2024-03-14 21:23 DBAGPT 阅读(34) 评论(0) 推荐(0)
摘要: #!/bin/bash ################################################################################################################################## # # Nam 阅读全文
posted @ 2024-03-14 21:22 DBAGPT 阅读(36) 评论(0) 推荐(0)
摘要: #!/bin/bash ################################################## # # check_postgresql_db_table_rowsnum_and_sizing.sh # # This scripts iterates arti data 阅读全文
posted @ 2024-03-14 21:19 DBAGPT 阅读(54) 评论(0) 推荐(0)
摘要: #!/bin/bash ################################################################ # # calculate_a_pure_size_of_the_postgres_db.sh # # This script calculate 阅读全文
posted @ 2024-03-14 21:17 DBAGPT 阅读(119) 评论(0) 推荐(0)
摘要: This post demonstrates an example of a Bash script that connects to a DB and prints a list of tables, their records number, and size. The result set i 阅读全文
posted @ 2024-03-14 21:16 DBAGPT 阅读(26) 评论(0) 推荐(0)
摘要: 在Oracle数据库中,同义词(Synonym)是一个指向另一个对象(表、视图、函数等)的命名引用。在将Oracle数据库迁移到PostgreSQL时,由于PostgreSQL没有直接支持同义词的概念,因此需要采取一些策略来处理同义词的转换。 以下是一种常见的方法来处理同义词的转换: 创建视图: 在 阅读全文
posted @ 2024-03-12 21:38 DBAGPT 阅读(207) 评论(0) 推荐(0)
摘要: select col.column_id, col.owner as schema_name, col.table_name, col.column_name, col.data_type, col.data_length, col.data_precision, col.data_scale, c 阅读全文
posted @ 2024-03-12 21:25 DBAGPT 阅读(53) 评论(0) 推荐(0)
摘要: PG 参数PLAN_CACHE_MODE可以选择(FORCE_CUSTOM_PLAN 或 FORCE_GENERIC_PLAN)默认为auto . -- 通过 set修改 set PLAN_CACHE_MODE=FORCE_CUSTOM_PLAN; set PLAN_CACHE_MODE=FORCE 阅读全文
posted @ 2024-03-03 19:48 DBAGPT 阅读(122) 评论(0) 推荐(0)
摘要: https://www.tutorialdba.com/2018/06/how-to-get-table-size-database-size_26.html 阅读全文
posted @ 2024-03-03 13:12 DBAGPT 阅读(14) 评论(0) 推荐(0)
摘要: create extension pg_stat_statements; show shared_preload_libraries; Useful commands -- Flush data from pg_stat_statements: > pg_stat_statements_reset( 阅读全文
posted @ 2024-03-03 11:50 DBAGPT 阅读(43) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页