[prev] 45 [next]

PostgreSQL Source Code (cont)

The source code directory (src) contains:
  • include:   *.h files with global definitions (constants, types, ...)
  • backend:   code for PostgreSQL database engine
  • bin:   code for clients (e.g. psql, pg_ctl, pg_dump, ...)
  • pl:   stored procedure language interpreters (e.g. plpgsql)
  • interfaces   code for low-level C interfaces (e.g. libpq)
along with Makefiles to build system and other directories ...

Code for backend (DBMS engine)

  • ~2000 files (~1100.c, ~900.h, 8.y, 10.l),   1.5×106 lines of code