PostgreSQL server for OS/2 How to do

This page will deal with the  programming in C, C++, Embedded C, JAVA. for Postgres SQL server, Postgres function modules, etc.

When you compile your programs in C or C++, you see this error during execution:

Process terminated by SIGSEGV
core dumped
SYS1808:
The process has stopped. The software diagnostic
code (exception code) is  0005.

This error is caused by pq.dll environment runtime. For solving this problem you can:

1: create a script like psql.cmd; (substutite psql.exe with the name of your application
2: set environment variable PGUSER:
        set pguser=user
user is an user name created by psql monitor with "create user" statement or with createuser.cmd utility


In a network environment you must set the IP workstation in \pgsqldata\pg_hba.conf

File format:
host    dbname    ip_address    address_mask    authtype
For field authtype see pg_hba.conf file in \pgsqldata directory

Example:
host    account    192.168.0.0    255.255.255.0    trust
This example allow all users from 192.168.0.x hosts to connect to account database

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.