PostgreSQL packages are available for NetBSD from the NetBSD Packages Collection (pkgsrc). Please see the pkgsrc documentation for information on how to install packages.
A list of PostgreSQL packages can be found on the NetBSD website.