# enterprisedb/edb-installers architecture

> Architecture diagram of the GitHub repository enterprisedb/edb-installers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/enterprisedb/edb-installers
- Repository: https://github.com/enterprisedb/edb-installers

## Overview

This repository is the PostgreSQL Installer build system: it packages PostgreSQL and add-ons into platform installers. Its documented user-to-result flow is a package author’s installer being run interactively or silently to install or uninstall a package; packages register installation details for StackBuilder to find. The tree also contains platform-specific validation clients and installer support utilities. The README describes the system’s intended behavior, but the top-level command and orchestration are not shown, so those links are documented rather than inferred from build scripts.

Main entry points: [`resources/validateUser.windows/WSValidateUserClient.c`](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/WSValidateUserClient.c) (Windows validation), [`resources/validateUser/WSValidateUserClient.c`](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/WSValidateUserClient.c) (Validation client), [`resources/validateUser/soapClient.c`](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/soapClient.c) (SOAP proxy), [`resources/validateUser.windows/soapClient.c`](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/soapClient.c) (Windows SOAP proxy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_package_system["Installer system"]
  node_registry["Package registry"]
  node_installer_framework["Installer framework"]
end

subgraph group_packages["Installer packages"]
  node_server["PostgreSQL server<br/>[installer.xml.in]"]
  node_postgis["PostGIS<br/>[installer.xml.in]"]
  node_pgagent["pgAgent<br/>[installer.xml.in]"]
  node_edbmtk["EDB MTK<br/>[installer.xml.in]"]
  node_languagepack["Language pack<br/>[installer.xml.in]"]
  node_sqlprotect["SQL Protect<br/>[installer.xml.in]"]
end

subgraph group_validation["Validation clients"]
  node_validate_client["Validation client"]
  node_validate_proxy["SOAP proxy<br/>[soapClient.c]"]
  node_soap_runtime["SOAP runtime<br/>[stdsoap2.c]"]
  node_windows_client["Windows validation"]
  node_windows_proxy["Windows SOAP proxy<br/>[soapClient.c]"]
  node_windows_runtime["Windows SOAP runtime<br/>[stdsoap2.c]"]
  node_wininet["WinInet transport<br/>[gsoapWinInet.c]"]
end

subgraph group_support["Platform support"]
  node_service_wrapper["Service wrapper<br/>[ServiceWrapper.c]"]
  node_user_validation["User validation utility<br/>[validateuser.cpp]"]
  node_user_creation["User creation utility<br/>[createuser.cpp]"]
  node_pgpass_helper["PGPass helper"]
  node_pgagent_user_tools["pgAgent user tools<br/>[validateuser.cpp]"]
  node_db_guid["Server GUID utility<br/>[dbserver_guid.c]"]
  node_locale_tool["Locale utility<br/>[getlocales.c]"]
end

node_author(("Package author"))
node_installer_user(("Installer user"))
node_stackbuilder["StackBuilder"]
node_auth_service(("Authentication service<br/>external service"))

node_author -->|"defines package"| node_installer_framework
node_installer_user -->|"runs installer"| node_installer_framework
node_installer_framework -->|"installs package"| node_server
node_installer_framework -->|"installs package"| node_postgis
node_installer_framework -->|"installs package"| node_pgagent
node_installer_framework -->|"installs package"| node_edbmtk
node_installer_framework -->|"installs package"| node_languagepack
node_installer_framework -->|"installs package"| node_sqlprotect
node_installer_framework -->|"records installation"| node_registry
node_registry -->|"supports discovery"| node_stackbuilder
node_validate_client -->|"calls SOAP operations"| node_validate_proxy
node_validate_proxy -->|"uses SOAP transport"| node_soap_runtime
node_validate_client -->|"sends validation request"| node_auth_service
node_windows_client -->|"calls SOAP operations"| node_windows_proxy
node_windows_client -->|"uses transport"| node_wininet
node_windows_proxy -->|"uses SOAP transport"| node_windows_runtime
node_windows_client -->|"sends validation request"| node_auth_service

click node_server "https://github.com/enterprisedb/edb-installers/blob/REL-19/server/installer.xml.in"
click node_postgis "https://github.com/enterprisedb/edb-installers/blob/REL-19/PostGIS/installer.xml.in"
click node_pgagent "https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/installer.xml.in"
click node_edbmtk "https://github.com/enterprisedb/edb-installers/blob/REL-19/edbmtk/installer.xml.in"
click node_languagepack "https://github.com/enterprisedb/edb-installers/blob/REL-19/languagepack/installer.xml.in"
click node_sqlprotect "https://github.com/enterprisedb/edb-installers/blob/REL-19/sqlprotect/installer.xml.in"
click node_validate_client "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/WSValidateUserClient.c"
click node_validate_proxy "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/soapClient.c"
click node_soap_runtime "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/stdsoap2.c"
click node_windows_client "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/WSValidateUserClient.c"
click node_windows_proxy "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/soapClient.c"
click node_windows_runtime "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/stdsoap2.c"
click node_wininet "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/gsoapWinInet.c"
click node_service_wrapper "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/ServiceWrapper/ServiceWrapper.c"
click node_user_validation "https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/windows/validateuser/validateuser.cpp"
click node_user_creation "https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/windows/createuser/createuser.cpp"
click node_pgpass_helper "https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/scripts/windows/CreatePGPassconfForUser/CreatePGPassconfForUser.c"
click node_pgagent_user_tools "https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/scripts/windows/validateuser/validateuser.cpp"
click node_db_guid "https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/dbserver_guid/dbserver_guid/dbserver_guid/dbserver_guid.c"
click node_locale_tool "https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/osx/getlocales/getlocales.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_registry,node_installer_framework,node_installer_user toneBlue
class node_server,node_postgis,node_pgagent,node_edbmtk,node_languagepack,node_sqlprotect toneAmber
class node_validate_client,node_validate_proxy,node_soap_runtime,node_windows_client,node_windows_proxy,node_windows_runtime,node_wininet toneMint
class node_service_wrapper,node_user_validation,node_user_creation,node_pgpass_helper,node_pgagent_user_tools,node_db_guid,node_locale_tool toneRose
class node_author,node_stackbuilder,node_auth_service toneIndigo
```

## Components

### Installer system

- **Package registry**
- **Installer framework**

### Installer packages

- [PostgreSQL server](https://github.com/enterprisedb/edb-installers/blob/REL-19/server/installer.xml.in): `server/installer.xml.in`
- [PostGIS](https://github.com/enterprisedb/edb-installers/blob/REL-19/PostGIS/installer.xml.in): `PostGIS/installer.xml.in`
- [pgAgent](https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/installer.xml.in): `pgAgent/installer.xml.in`
- [EDB MTK](https://github.com/enterprisedb/edb-installers/blob/REL-19/edbmtk/installer.xml.in): `edbmtk/installer.xml.in`
- [Language pack](https://github.com/enterprisedb/edb-installers/blob/REL-19/languagepack/installer.xml.in): `languagepack/installer.xml.in`
- [SQL Protect](https://github.com/enterprisedb/edb-installers/blob/REL-19/sqlprotect/installer.xml.in): `sqlprotect/installer.xml.in`

### Validation clients

- [Validation client](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/WSValidateUserClient.c): `resources/validateUser/WSValidateUserClient.c`
- [SOAP proxy](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/soapClient.c): `resources/validateUser/soapClient.c`
- [SOAP runtime](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser/stdsoap2.c): `resources/validateUser/stdsoap2.c`
- [Windows validation](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/WSValidateUserClient.c): `resources/validateUser.windows/WSValidateUserClient.c`
- [Windows SOAP proxy](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/soapClient.c): `resources/validateUser.windows/soapClient.c`
- [Windows SOAP runtime](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/stdsoap2.c): `resources/validateUser.windows/stdsoap2.c`
- [WinInet transport](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/validateUser.windows/gsoapWinInet.c): `resources/validateUser.windows/gsoapWinInet.c`

### Platform support

- [Service wrapper](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/ServiceWrapper/ServiceWrapper.c): `resources/ServiceWrapper/ServiceWrapper.c`
- [User validation utility](https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/windows/validateuser/validateuser.cpp): `server/scripts/windows/validateuser/validateuser.cpp`
- [User creation utility](https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/windows/createuser/createuser.cpp): `server/scripts/windows/createuser/createuser.cpp`
- [PGPass helper](https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/scripts/windows/CreatePGPassconfForUser/CreatePGPassconfForUser.c): `pgAgent/scripts/windows/CreatePGPassconfForUser/CreatePGPassconfForUser.c`
- [pgAgent user tools](https://github.com/enterprisedb/edb-installers/blob/REL-19/pgAgent/scripts/windows/validateuser/validateuser.cpp): `pgAgent/scripts/windows/validateuser/validateuser.cpp`
- [Server GUID utility](https://github.com/enterprisedb/edb-installers/blob/REL-19/resources/dbserver_guid/dbserver_guid/dbserver_guid/dbserver_guid.c): `resources/dbserver_guid/dbserver_guid/dbserver_guid/dbserver_guid.c`
- [Locale utility](https://github.com/enterprisedb/edb-installers/blob/REL-19/server/scripts/osx/getlocales/getlocales.c): `server/scripts/osx/getlocales/getlocales.c`

### Other components

- **Package author**
- **Installer user**
- **StackBuilder**
- **Authentication service**: external service

## Connections

- Package author → Installer framework: defines package (evidence: `README`)
- Installer user → Installer framework: runs installer (evidence: `README`)
- Installer framework → PostgreSQL server: installs package (evidence: `README`)
- Installer framework → PostGIS: installs package (evidence: `README`)
- Installer framework → pgAgent: installs package (evidence: `README`)
- Installer framework → EDB MTK: installs package (evidence: `README`)
- Installer framework → Language pack: installs package (evidence: `README`)
- Installer framework → SQL Protect: installs package (evidence: `README`)
- Installer framework → Package registry: records installation (evidence: `README`)
- Package registry → StackBuilder: supports discovery (evidence: `README`)
- Validation client → SOAP proxy: calls SOAP operations (evidence: `resources/validateUser/WSValidateUserClient.c`)
- SOAP proxy → SOAP runtime: uses SOAP transport (evidence: `resources/validateUser/soapClient.c`)
- Validation client → Authentication service: sends validation request (evidence: `resources/validateUser/WSValidateUserClient.c`)
- Windows validation → Windows SOAP proxy: calls SOAP operations (evidence: `resources/validateUser.windows/WSValidateUserClient.c`)
- Windows validation → WinInet transport: uses transport (evidence: `resources/validateUser.windows/WSValidateUserClient.c`)
- Windows SOAP proxy → Windows SOAP runtime: uses SOAP transport (evidence: `resources/validateUser.windows/soapClient.c`)
- Windows validation → Authentication service: sends validation request (evidence: `resources/validateUser.windows/WSValidateUserClient.c`)
