{"id":19672028,"url":"https://github.com/michelp/pgexpanded","last_synced_at":"2025-07-19T18:04:56.888Z","repository":{"id":145541051,"uuid":"169459474","full_name":"michelp/pgexpanded","owner":"michelp","description":"Minimal running example of a postgres \"expanded\" data type","archived":false,"fork":false,"pushed_at":"2024-11-19T18:06:27.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T21:16:33.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michelp.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":"2019-02-06T18:59:22.000Z","updated_at":"2024-11-20T02:44:45.000Z","dependencies_parsed_at":"2023-04-08T10:16:44.895Z","dependency_job_id":null,"html_url":"https://github.com/michelp/pgexpanded","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michelp%2Fpgexpanded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michelp%2Fpgexpanded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michelp%2Fpgexpanded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michelp%2Fpgexpanded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michelp","download_url":"https://codeload.github.com/michelp/pgexpanded/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577027,"owners_count":21770721,"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":[],"created_at":"2024-11-11T17:10:38.557Z","updated_at":"2025-05-05T21:16:38.678Z","avatar_url":"https://github.com/michelp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgexpanded\n\nThis is an example postgres extension that shows how to implement an\n\"expanded\" data type in C as described [in this\ndocumentation](https://www.postgresql.org/docs/current/xtypes.html):\n\n*\"Another feature that's enabled by TOAST support is the possibility of\nhaving an expanded in-memory data representation that is more\nconvenient to work with than the format that is stored on disk. The\nregular or “flat” varlena storage format is ultimately just a blob of\nbytes; it cannot for example contain pointers, since it may get copied\nto other locations in memory. For complex data types, the flat format\nmay be quite expensive to work with, so PostgreSQL provides a way to\n“expand” the flat format into a representation that is more suited to\ncomputation, and then pass that format in-memory between functions of\nthe data type.\"*\n\nThis repository provides a simple, compilable and runnable example\nexpanded data type that can be used as a basis for other extensions.\nBy way of trivial example, it shows how to expand a data type that\nkeeps track of the number of expansions it's gone through.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichelp%2Fpgexpanded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichelp%2Fpgexpanded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichelp%2Fpgexpanded/lists"}