{"id":14974081,"url":"https://github.com/ntkme/postgresql-cidr","last_synced_at":"2025-10-15T15:38:33.467Z","repository":{"id":43454064,"uuid":"264387721","full_name":"ntkme/postgresql-cidr","owner":"ntkme","description":":elephant: PostgreSQL cidr extension.","archived":false,"fork":false,"pushed_at":"2023-09-04T17:30:27.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-26T13:27:19.862Z","etag":null,"topics":["cidr","inet","ipv4","ipv6","plpgsql","postgresql","postgresql-extension"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntkme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-16T07:57:54.000Z","updated_at":"2022-05-16T11:17:30.000Z","dependencies_parsed_at":"2024-10-11T10:00:38.803Z","dependency_job_id":null,"html_url":"https://github.com/ntkme/postgresql-cidr","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"ae5d5500a5d999086fefec6c4b645258d0b1d50d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntkme%2Fpostgresql-cidr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntkme%2Fpostgresql-cidr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntkme%2Fpostgresql-cidr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntkme%2Fpostgresql-cidr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntkme","download_url":"https://codeload.github.com/ntkme/postgresql-cidr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntkme%2Fpostgresql-cidr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259253753,"owners_count":22829151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cidr","inet","ipv4","ipv6","plpgsql","postgresql","postgresql-extension"],"created_at":"2024-09-24T13:49:55.602Z","updated_at":"2025-10-15T15:38:33.461Z","avatar_url":"https://github.com/ntkme.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cidr\n\n[![build](https://github.com/ntkme/postgresql-cidr/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/postgresql-cidr/actions/workflows/build.yml)\n\n## Installation\n\n``` sh\nmake install\n```\n\n### Comparison with Built-In `inet_merge`\n\n| Function    | `inet_merge(inet, inet)`                                       | `cidr(inet, inet)`                                                                                                                                                                                                                                                                                                             |\n|-------------|----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Return Type | `cidr`                                                         | `TABLE (cidr cidr)`                                                                                                                                                                                                                                                                                                            |\n| Description | the smallest network which includes both of the given networks | the smallest set of network(s) which includes both of the given addresses                                                                                                                                                                                                                                                      |\n| Example     | `inet_merge('8.8.8.8', '8.255.255.255')`                       | `cidr('8.8.8.8', '8.255.255.255')`                                                                                                                                                                                                                                                                                             |\n| Result      | `8.0.0.0/8`                                                    | `8.8.8.8/29`\u003cbr\u003e`8.8.8.16/28`\u003cbr\u003e`8.8.8.32/27`\u003cbr\u003e`8.8.8.64/26`\u003cbr\u003e`8.8.8.128/25`\u003cbr\u003e`8.8.9.0/24`\u003cbr\u003e`8.8.10.0/23`\u003cbr\u003e`8.8.12.0/22`\u003cbr\u003e`8.8.16.0/20`\u003cbr\u003e`8.8.32.0/19`\u003cbr\u003e`8.8.64.0/18`\u003cbr\u003e`8.8.128.0/17`\u003cbr\u003e`8.9.0.0/16`\u003cbr\u003e`8.10.0.0/15`\u003cbr\u003e`8.12.0.0/14`\u003cbr\u003e`8.16.0.0/12`\u003cbr\u003e`8.32.0.0/11`\u003cbr\u003e`8.64.0.0/10`\u003cbr\u003e`8.128.0.0/9` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntkme%2Fpostgresql-cidr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntkme%2Fpostgresql-cidr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntkme%2Fpostgresql-cidr/lists"}