{"id":20622380,"url":"https://github.com/siilike/postgresql-vpack","last_synced_at":"2026-04-20T19:05:28.732Z","repository":{"id":81835859,"uuid":"240687039","full_name":"siilike/postgresql-vpack","owner":"siilike","description":"VelocyPack support for PostgreSQL","archived":false,"fork":false,"pushed_at":"2020-02-15T10:38:09.000Z","size":110,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-20T16:54:13.730Z","etag":null,"topics":["bson","jsonb","mongodb","postgresql","postgresql-extension","postgresql-vpack","velocypack"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siilike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-15T10:31:19.000Z","updated_at":"2023-03-07T10:51:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"acdf87ec-3b96-4e8a-bbe1-7e6c2ecb9b50","html_url":"https://github.com/siilike/postgresql-vpack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siilike/postgresql-vpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siilike%2Fpostgresql-vpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siilike%2Fpostgresql-vpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siilike%2Fpostgresql-vpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siilike%2Fpostgresql-vpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siilike","download_url":"https://codeload.github.com/siilike/postgresql-vpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siilike%2Fpostgresql-vpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bson","jsonb","mongodb","postgresql","postgresql-extension","postgresql-vpack","velocypack"],"created_at":"2024-11-16T12:22:35.790Z","updated_at":"2026-04-20T19:05:28.707Z","avatar_url":"https://github.com/siilike.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PostgreSQL VelocyPack extension\n\nThis extension adds the [velocypack](https://github.com/arangodb/velocypack) format support to PostgreSQL. Generally it is a `jsonb` analogue with more data types and support for logical types or tags.\n\nIt supports most `jsonb_*` functions as `vpack_*`, `jsonpath` analogue `vpackpath` and conversion from the `json`, `jsonb` and `BSON` formats.\n\nSome bits and pieces haven't been implemented yet.\n\n## Advantages\n\n  * more data types than JSON\n  * same format for data processing, transport and storage\n  * logical types or tagging: for more precise type or object document mapping\n\n## Performance\n\n![Benchmark PostgreSQL (jsonb), PostgreSQL (vpack) and MongoDB](benchmark.png)\n\n  * 16 parallel clients, 10^6 records, 5 minutes\n  * left axis: average requests per second\n  * top left: inserts -- VPack is a bit faster, because it did not perform input validation\n  * top right: selects by primary key -- VPack is faster due to lack of conversion to text\n  * bottom left: a simple aggregate operation\n  * bottom right: transactions\n\n## TODO\n\n  * finish tests\n  * add tags and full type support to `vpackpath`\n  * specify and implement conversions and tag IDs for all PostgreSQL types\n  * implement missing `vpack_*` functions like `vpack_populate_record`, `vpack_to_recordset`, etc\n  * [31f403e95fdf88338d3fc9c6af80fcf6d8241044](https://github.com/postgres/postgres/commit/31f403e95fdf88338d3fc9c6af80fcf6d8241044)\n  * [a83586b5543b948f9e621462537a7303b113c482](https://github.com/postgres/postgres/commit/a83586b5543b948f9e621462537a7303b113c482)\n  * [e56cad84d542a8cc2056390a9c651118cfa6c89c](https://github.com/postgres/postgres/commit/e56cad84d542a8cc2056390a9c651118cfa6c89c)\n  * [1cff1b95ab6ddae32faa3efe0d95a820dbfdc164](https://github.com/postgres/postgres/commit/1cff1b95ab6ddae32faa3efe0d95a820dbfdc164)\n  * [52ad1e659967896ed153185328ffe806d69abcb6](https://github.com/postgres/postgres/commit/52ad1e659967896ed153185328ffe806d69abcb6)\n  * [7881bb14f4b23e8dc8671938cfb3f34117c12d8b](https://github.com/postgres/postgres/commit/7881bb14f4b23e8dc8671938cfb3f34117c12d8b)\n  * [bffe1bd68457e43925c362d8728ce3b25bdf1c94](https://github.com/postgres/postgres/commit/bffe1bd68457e43925c362d8728ce3b25bdf1c94)\n  * [6dda292d4df82a9158d1acc93feecf3b84637b59](https://github.com/postgres/postgres/commit/6dda292d4df82a9158d1acc93feecf3b84637b59)\n  * [0a02e2ae0236103e641f6570b8135b7ee8a83686](https://github.com/postgres/postgres/commit/0a02e2ae0236103e641f6570b8135b7ee8a83686)\n\n## Building\n\nInstall `bison`, `flex`, `cmake`, `gcc`.\n\n```\ngit submodule update --recursive\n\n(\n\tmkdir build-mongo\n\tcd build-mongo\n\tcmake -DCMAKE_C_FLAGS=\"-fPIC\" ../mongo-c-driver/\n\tmake -j 12\n)\n\n(\n\tmkdir build\n\tcd build\n\tcmake ..\n\tmake -j 12\n\tmake install\n)\n```\n\nThen run `CREATE EXTENSION vpack;`. See `vpack--0.1.sql` for available functions, operators and casts.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiilike%2Fpostgresql-vpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiilike%2Fpostgresql-vpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiilike%2Fpostgresql-vpack/lists"}