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.
Port details on branch 2026Q1
rubygem-pg_query Parses SQL queries using a copy of the PostgreSQL server query parser
6.2.2 databases 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 6.2.2Version of this port present on the latest quarterly branch.
Maintainer: mfechner@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-02-27 12:21:20
Last Update: 2026-02-27 12:07:47
Commit Hash: 81558e5
Also Listed In: rubygems
License: BSD3CLAUSE
WWW:
https://github.com/lfittl/pg_query
Description:
This Ruby extension uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parsetree. In addition the extension allows you to normalize queries (replacing constant values with ?) and parse these normalized queries into a parsetree again.
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 (3 items)
Collapse this list.
  1. /usr/local/share/licenses/rubygem-pg_query-6.2.2/catalog.mk
  2. /usr/local/share/licenses/rubygem-pg_query-6.2.2/LICENSE
  3. /usr/local/share/licenses/rubygem-pg_query-6.2.2/BSD3CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • rubygem-pg_query>0:databases/rubygem-pg_query
To install the port:
cd /usr/ports/databases/rubygem-pg_query/ && make install clean
To add the package, run one of these commands:
  • pkg install databases/rubygem-pg_query
  • pkg install rubygem-pg_query
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: rubygem-pg_query
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1771567755 SHA256 (rubygem/pg_query-6.2.2.gem) = 316c194160ccfac8af9a7aff55cdc5b2d13bdd8bd8734976c6bddc477e779b6f SIZE (rubygem/pg_query-6.2.2.gem) = 2477056

No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. rubygem-pathname>0 : devel/rubygem-pathname
  2. ruby33 : lang/ruby33
  3. gem : devel/ruby-gems
Runtime dependencies:
  1. rubygem-google-protobuf>=3.25.3 : devel/rubygem-google-protobuf
  2. ruby33 : lang/ruby33
  3. gem : devel/ruby-gems
Patch dependencies:
  1. ruby33 : lang/ruby33
  2. gem : devel/ruby-gems
Extract dependencies:
  1. ruby33 : lang/ruby33
This port is required by:
for Build
  1. www/gitlab
for Run
  1. devel/rubygem-gitlab-labkit
  2. www/gitlab

Configuration Options:
No options to configure
Options name:
databases_rubygem-pg_query
USES:
gem
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://rubygems.org/downloads/
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
6.2.2
27 Feb 2026 12:07:47
commit hash: 81558e54b02c6c87724fea1464cd982fe6ba6771commit hash: 81558e54b02c6c87724fea1464cd982fe6ba6771commit hash: 81558e54b02c6c87724fea1464cd982fe6ba6771commit hash: 81558e54b02c6c87724fea1464cd982fe6ba6771 files touched by this commit
Matthias Fechner (mfechner) search for other commits by this committer
databases/rubygem-pg_query: update to 6.2.2

Required for gitlab 18.9

Changes:	https://github.com/pganalyze/pg_query/blob/main/CHANGELOG.md
(cherry picked from commit 0dc7116f7a87157be1fb6424f6b34707a59df519)

Number of commits found: 1