Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    039dfbfd
    Reduce the need for frontend programs to include "postgres.h" by refactoring · 039dfbfd
    Tom Lane authored
    inclusions in src/include/catalog/*.h files.  The main idea here is to push
    function declarations for src/backend/catalog/*.c files into separate headers,
    rather than sticking them into the corresponding catalog definition file as
    has been done in the past.  This commit only carries out that idea fully for
    pg_proc, pg_type and pg_conversion, but that's enough for the moment ---
    if pg_list.h ever becomes unsafe for frontend code to include, we'll need
    to work a bit more.
    
    Zdenek Kotala
    039dfbfd
    History
    Reduce the need for frontend programs to include "postgres.h" by refactoring
    Tom Lane authored
    inclusions in src/include/catalog/*.h files.  The main idea here is to push
    function declarations for src/backend/catalog/*.c files into separate headers,
    rather than sticking them into the corresponding catalog definition file as
    has been done in the past.  This commit only carries out that idea fully for
    pg_proc, pg_type and pg_conversion, but that's enough for the moment ---
    if pg_list.h ever becomes unsafe for frontend code to include, we'll need
    to work a bit more.
    
    Zdenek Kotala