External Connections for a PostgreSQL Server

By default, a PostgreSQL server doesn't allows external connections.
How to Change this Behavior?

    • Edit pg_hba.conf file
  • Insert the rules for external connections


Example that allows all clients from your network as 192.168.0.1:

# TYPE  DATABASE    USER        CIDR-ADDRESS              METHOD
# IPv4 local connections:
host    all         all         127.0.0.1/32              md5
host    all         all         192.168.0.0 255.255.255.0 password
# IPv6 local connections:
#host   all         all         ::1/128                   md5

 

Data Security with Flex2SQL and BTR2SQL Connectivity Products

Data Security with Flex2SQL and BTR2SQL Connectivity Products

The most common reason for Enterprises looking to migrate from legacy Btrieve or DataFlex databases is the urgent need to address security and...

Read More
Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More