文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之十八

继续分析: setup_conversion(); 展开: 其实质是: 运行命令:"/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null 传递参数:/home/pgsql/project/share/c...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之十九

继续分析: setup_dictionary(); 展开: 其中: cmd 是:"/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true -j template1 >/dev/null dictionary_file 是:/home/pgsql/...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之二十

继续分析: setup_privileges(); 展开: 这是设置权限。 其cmd是:"/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null 其命令是:UPDATE pg_class   SET re...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之二十二

继续分析 load_plpgsql(); 展开: 就是让postgres 执行 create extension plpgsql cmd是:  "/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null o...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之二十三

继续分析: vacuum_db(); 展开: cmd是:/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null 其目的很明确,就是 对 template1 数据库执行 ANALYZE;VACUUM FUL...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之二十五

继续分析: make_postgres();  展开: 目的是创建postgres数据库。 cmd是:/home/pgsql/project/bin/postgres" --single -F -O -c search_path=pg_catalog -c exit_on_error=true template1 >/dev/null  /* * copy templat...

文章 2022-02-16 来自:开发者社区

PostgreSQL的 initdb 源代码分析之二十四

继续分析: make_template0(); 展开: 无需再作解释,就是创建template0数据库 /* * copy template1 to template0 */ static void make_template0(void) { PG_CMD_DECL; const char **line; static const char *templ...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

相关镜像