PostgreSQL Database Setup
Prepare PostgreSQL
Create the GermainUX Databases
PostgreSQL Maintenance
Overview
GermainUX supports PostgreSQL as an on-premise relational datastore. PostgreSQL may be appropriate when:- Your organization already operates PostgreSQL.
- Database administrators have established PostgreSQL security, backup, and maintenance procedures.
- An open-source relational datastore is preferred.
- The expected GermainUX ingestion and analytics workload has been validated against PostgreSQL.
PostgreSQL Benefits
Before You Begin
Confirm with Germain Software:- The PostgreSQL version supported by your GermainUX release
- Required PostgreSQL JDBC driver
- Required encoding and collation
- Schema scripts supplied with the release
- Expected daily AA Unit volume
- Raw and aggregated data-retention periods
Show all 10
Show all 10
- Session Replay volume
- Partitioning and maintenance requirements
- High-availability requirements
- Migration or upgrade requirements
Requirements
Prepare:- A supported 64-bit operating system
- A supported PostgreSQL version
- PostgreSQL administrative access
- A supported PostgreSQL JDBC driver
- Network connectivity from GermainUX Enterprise
- Sufficient CPU, memory, SSD storage, and IOPS
Show all 10
Show all 10
- TLS certificates
- Backup and recovery procedures
- The GermainUX Service distribution package
- Installation scripts supplied for the GermainUX release
Install PostgreSQL
Use your organization’s approved PostgreSQL distribution and installation process.Debian or Ubuntu
Install PostgreSQL through the approved operating-system or PostgreSQL repository:Red Hat Enterprise Linux or Compatible Distribution
Install the approved PostgreSQL packages for the operating-system version, initialize the database cluster when required, and start the service. Example:Windows
Install steps:Download the approved PostgreSQL installer
Run it with administrator privileges
Select the PostgreSQL Server components
Configure the data directory
Set a strong administrative password
Configure the listener port
Complete the installation
Confirm that the PostgreSQL Windows service is running
Prepare PostgreSQL
Configure Network Access
The default PostgreSQL port is:- Listening addresses
- Approved client networks
- Authentication method
- TLS
- Connection limits
- Logging
- Time zone
Configure TLS
Enable TLS for connections between GermainUX Enterprise and PostgreSQL. Validate:- Server certificate
- Private key permissions
- Certificate chain
- Hostname
- Expiration date
- Client trust
- Approved TLS versions
pg_hba.conf when mandated by your security standards.
Configure Authentication
Use a secure password-authentication method supported by the selected PostgreSQL and JDBC versions. Create dedicated GermainUX accounts rather than using the PostgreSQL superuser.Create the GermainUX Databases
GermainUX requires separate storage for:1 Extract the Service Distribution
Extract the GermainUX Service package to a directory referenced below as:2 Review the Database Instructions
Open:3. Locate the PostgreSQL Scripts
Locate the PostgreSQL scripts under the database-installation directory included in the GermainUX Service package. The package may contain:- Initial database and role creation
- Configuration-schema creation
- Datamart-schema creation
- Index creation
- Upgrade scripts
- Retention or maintenance configuration
4. Replace Example Credentials
Before running the setup scripts:- Replace all example passwords.
- Use separate credentials for configuration and datamart access.
- Review database ownership.
- Review granted permissions.
- Confirm tablespace or storage locations.
- Remove unnecessary superuser privileges.
5. Run the Scripts in Sequence
Run the scripts in the exact sequence specified by the release’sreadme.txt.
Typically:
Run the initial setup using a PostgreSQL administrative account
Create the configuration database and account
Create the datamart database and account
Run configuration scripts against apm_config
Run datamart scripts against apm_datamart
Create required indexes, functions, and maintenance objects
Configure GermainUX Enterprise
Configure GermainUX Enterprise with:- PostgreSQL hostname
- PostgreSQL port
apm_configdatabase nameapm_datamartdatabase name- Dedicated usernames
- Securely stored passwords
Show all 10
Show all 10
- TLS settings
- Connection-pool settings
- Connection and query timeouts
- Supported PostgreSQL JDBC driver
Validate the Setup
Before starting production monitoring:Connect to PostgreSQL using the configuration account
Connect using the datamart account
Confirm that both databases exist
Confirm that all required schemas, tables, indexes, sequences, functions, and views were created
Verify that GermainUX Enterprise can connect
Start GermainUX Enterprise
Review logs for JDBC, schema, permission, or TLS errors
Save and retrieve GermainUX configuration
Ingest a limited monitoring workload
Confirm that facts are stored in apm_datamart
Open representative dashboards and analyses
Validate retention and cleanup
Measure ingestion and query performance
PostgreSQL Maintenance
Autovacuum and Analyze
GermainUX can produce a continuous write workload. Confirm that PostgreSQL autovacuum and automatic statistics collection keep pace with:- Inserts
- Updates
- Expired-data deletion
- Partition maintenance
- Index growth
Partitioning and Retention
Where the GermainUX schema uses partitions:- Confirm that new partitions are created as required.
- Confirm that expired partitions are removed.
- Validate partition boundaries before deletion.
- Monitor tablespace and filesystem utilization.
- Align partition retention with GermainUX retention policies.
Connection Management
Monitor:- Active connections
- Idle connections
- Connection-pool utilization
- Maximum connections
- Long-running queries
- Locks and blocked sessions
Performance
Monitor:- CPU and memory
- Disk capacity and latency
- WAL generation
- Checkpoint frequency and duration
- Cache-hit ratio
- Query latency
Show all 11
Show all 11
- Sequential scans
- Index usage
- Replication lag
- Vacuum progress
- Backup duration
Backup and Recovery
Back up both:- Full backups
- WAL archiving when point-in-time recovery is required
- Off-host or protected backup storage
- Encryption
- Backup retention
- Replication where required
- Automated backup monitoring
- Periodic restore testing
High Availability
When required, use an approved PostgreSQL high-availability architecture that provides:- Streaming replication
- Automated or controlled failover
- Connection redirection
- Replication monitoring
- Split-brain prevention
- Documented recovery procedures
Production Checklist
- The PostgreSQL version is supported by GermainUX.
- The approved JDBC driver is installed.
- TLS is enabled.
- Network access is restricted.
- Dedicated GermainUX accounts are configured.
- Example passwords have been replaced.
Show all 15
Show all 15
apm_confighas been initialized.apm_datamarthas been initialized.- All scripts ran in the documented sequence.
- GermainUX Enterprise connects successfully.
- Backups are configured.
- A restore has been tested.
- Autovacuum and retention are operating correctly.
- Capacity and performance monitoring are enabled.
- High availability has been tested when required.
Get Help
Contact GermainUX Support
Can't find what you need?
The content of this document is proprietary to GERMAIN SOFTWARE.

