From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | Alexander Borisov <lex(dot)borisov(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Proposal to add a new URL data type. |
Date: | 2024-12-05 14:59:54 |
Message-ID: | bd31499f-3185-4923-a4ea-7610a0985209@eisentraut.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 05.12.24 15:01, Alexander Borisov wrote:
> Postgres users often store URLs in the database. As an example, they
> provide links to their pages on the web, analyze users posts and get
> links for further storage and analysis. Naturally, there is a need to
> compare, sort, build indexes, get statistics on individual parts of
> the URL: hosts, protocols, path and so on.
>
> Adding a new URL type will standardize the work with URLs in Postgres
> and provide simple tools for manipulating the new type.
Have you seen this: https://github.com/petere/pguri ?
The difference there is that it uses an external library for parsing the
URLs, which makes the code much smaller. Overall, the functionality
looks pretty similar to yours at first glance.
From | Date | Subject | |
---|---|---|---|
Next Message | Euler Taveira | 2024-12-05 15:06:41 | Re: doc: Mention clock synchronization recommendation for hot_standby_feedback |
Previous Message | Alvaro Herrera | 2024-12-05 14:43:08 | Re: attndims, typndims still not enforced, but make the value within a sane threshold |