postgresql代码目录结构简介

  1. 根目录前端

    aclocal.m4   config文件的一部分node

    config.log  进行configure之后生成的log文件c++

    configure  配置文件sql

    contrib  其余共享代码数据库

    doc  文档bootstrap

    GUNmakefile.in makefile原始文件后端

    INSTALL  安装方法说明缓存

    README  简要说明文件app

    config   config用文件目录函数

    config.status  configure之后生成文件

    configure.in  configure原始文件

    COPYRIGHT  版权信息

    GUNmakefile  根目录makefile文件

    HISTORY 修改历史

    Makefile  makefile模板文件

    src  源码代码目录

  2. 二级目录 src

    backend  后端的源代码

    interface    前端相关的库代码

    Makefile.global.in   Makefile.global原始文件

    port   平台一直相关代码

    timezone   时区相关代码

    win32.mak   visual c++用

    bcc32.mak  borland c++用

    DEVELOPERS  面向开发人员说明

    Makefile   Makefile

    Makefile.port  configure生成文件

    nls-global.mk   信息目录用的makefile文件的规则

    template   平台相关的设置值

    tools   开发工具及文档

    bin  psql等unix命令代码

    include   头文件

    Makefile.global   configure文件生成

    makefiles   平台相关的makefile文件

    pl   存储过程语言相关代码

    test   各类测试脚本

    tutorial  教程

  3. 三级目录  backend

    access   各类存储的访问,包含各类索引、heap

    commands   SQL语句处理

    foreign  foreign data wrapper处理

    main  postgres主函数

    nodes   parser后树节点的处理函数

    po   

    regex   正则处理

    snowball   全文检索相关(语干处理)

    tsearch   全文检索

    bootstrap   数据库初始化处理(initdb)

    lib   共用函数 

    optimizer   优化器相关代码

    port   平台相关代码 

    replication    流复制

    storage   共享内存、磁盘存储、缓存等

    utils    各类模块下的处理函数

    catalog    系统目录

    executeor   执行器

    libpq   先后端通信代码

    parser   解析器

    postmaster   postmaster 主函数

    rewrite    重写处理

    tcop   postgres的主要部分

    这部分也是postgresql的主要代码目录,涉及的核心代码。

相关文章
相关标签/搜索