notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Port details
nginx-module-postgres Sources of the postgres module for the NGINX ports
1.0.0 wwwnew! on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: joneum@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-10-13 21:24:11
Last Update: 2026-10-13 21:20:46
Commit Hash: 6b3966e
License: BSD2CLAUSE
WWW:
https://github.com/sysadmin-labs/nginx-postgres-module
Description:
The postgres module queries PostgreSQL from nginx itself, with no application in between: a location names an upstream and a query, and the rows come back as text, as JSON, or as nothing but a status code. Values from the request go into the query escaped, and the status code can be chosen by how many rows came back. This port only installs the module sources. The module itself is built by the nginx ports when their POSTGRES option is enabled.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (26 items)
Collapse this list.
  1. share/nginx/modules/nginx-module-postgres/config
  2. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_ddebug.h
  3. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_escape.c
  4. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_escape.h
  5. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_handler.c
  6. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_handler.h
  7. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_keepalive.c
  8. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_keepalive.h
  9. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_module.c
  10. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_module.h
  11. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_output.c
  12. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_output.h
  13. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_processor.c
  14. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_processor.h
  15. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_rewrite.c
  16. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_rewrite.h
  17. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_upstream.c
  18. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_upstream.h
  19. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_util.c
  20. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_util.h
  21. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_variable.c
  22. share/nginx/modules/nginx-module-postgres/src/ngx_postgres_variable.h
  23. share/nginx/modules/nginx-module-postgres/src/resty_dbd_stream.h
  24. /usr/local/share/licenses/nginx-module-postgres-1.0.0/catalog.mk
  25. /usr/local/share/licenses/nginx-module-postgres-1.0.0/LICENSE
  26. /usr/local/share/licenses/nginx-module-postgres-1.0.0/BSD2CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • nginx-module-postgres>0:www/nginx-module-postgres
To install the port:
cd /usr/ports/www/nginx-module-postgres/ && make install clean
To add the package, run one of these commands:
  • pkg install www/nginx-module-postgres
  • pkg install nginx-module-postgres
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: nginx-module-postgres
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1791920188 SHA256 (sysadmin-labs-nginx-postgres-module-1.0.0_GH0.tar.gz) = 351bba8174f5e1a6d5fe7b7674d2f32103659be87c3d66310d134229a53b5e4d SIZE (sysadmin-labs-nginx-postgres-module-1.0.0_GH0.tar.gz) = 70031

No package information for this port in our database
Sometimes this happens. Not all ports have packages. This is doubly so for new ports, like this one.
This port has no dependencies.
This port is required by:
for Build
  1. www/nginx-full

Configuration Options:
No options to configure
Options name:
www_nginx-module-postgres
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/sysadmin-labs/nginx-postgres-module/tar.gz/1.0.0?dummy=/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.0.0
13 Oct 2026 21:20:46
commit hash: 6b3966e2907c8aac2622d43c051878483859cf80commit hash: 6b3966e2907c8aac2622d43c051878483859cf80commit hash: 6b3966e2907c8aac2622d43c051878483859cf80commit hash: 6b3966e2907c8aac2622d43c051878483859cf80 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
www/nginx-module-postgres: Add New Port

Sources of the postgres module for the NGINX ports.  The module queries
PostgreSQL from nginx itself, with no application in between, and answers
with the rows as text, as JSON, or as nothing but a status code.

Sponsored by:	Netzkommune GmbH

Number of commits found: 1