PostgreSQL packages are available for OpenBSD from the OpenBSD Ports and Packages Collection. Please see the ports documentation for information on how to install ports.