pg_url
Implements URL handling methods as postgres extension
pg_url · Implements URL handling methods as postgres extension
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pg_url.control)
- Official implementation source
pg_url — Implements URL manipulation methods as a postgres extension. Using this extension will allow you to work with URLS directly inside database. You could use it to create an index on a URL host. Use it when SQL needs these specialized functions or aggregates. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
url_clear_hostis an extension function.url_fragmentis an extension function.url_hostis an extension function.url_pathis an extension function.url_queryis an extension function.url_query_paramis an extension function.url_schemeis an extension function.url_set_fragmentis an extension function.url_set_hostis an extension function.url_set_pathis an extension function.url_set_queryis an extension function.url_set_query_paramis an extension function.url_set_schemeis an extension function.
Requirements and Caveats
- The catalog records version
0.1.0. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.