Title: Support range and multirange types · Issue #140 · PyGreSQL/PyGreSQL · GitHub
Open Graph Title: Support range and multirange types · Issue #140 · PyGreSQL/PyGreSQL
X Title: Support range and multirange types · Issue #140 · PyGreSQL/PyGreSQL
Description: PyGreSQL has no support for range types (PostgreSQL 9.2) and multirange types (PostgreSQL 14). Values are returned as strings like '[1,5)', 'empty' or '{[1,5),[7,9)}', and there is no Python type to pass them as parameters. psycopg 3 has...
Open Graph Description: PyGreSQL has no support for range types (PostgreSQL 9.2) and multirange types (PostgreSQL 14). Values are returned as strings like '[1,5)', 'empty' or '{[1,5),[7,9)}', and there is no Python type t...
X Description: PyGreSQL has no support for range types (PostgreSQL 9.2) and multirange types (PostgreSQL 14). Values are returned as strings like '[1,5)', 'empty' or '{[1,5),[7,9)}', and t...
Opengraph URL: https://github.com/PyGreSQL/PyGreSQL/issues/140
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support range and multirange types","articleBody":"PyGreSQL has no support for range types (PostgreSQL 9.2) and multirange types (PostgreSQL 14). Values are returned as strings like `'[1,5)'`, `'empty'` or `'{[1,5),[7,9)}'`, and there is no Python type to pass them as parameters.\n\npsycopg 3 has `Range` and `Multirange` classes with casts and adapters for the built-in types (`int4range`, `int8range`, `numrange`, `daterange`, `tsrange`, `tstzrange` and their multiranges) and for user-defined range types.\n\nProper support would need:\n\n- a `Range` class (bounds, inclusivity, empty, unbounded) and a `Multirange` class, in `pg` and `pgdb`,\n- casts that convert the bounds with the cast of the subtype (from `pg_range`), also for user-defined range types and as elements of arrays and records,\n- adaptation of these objects as parameters, also inline and in arrays.\n\nReturning `Range` objects instead of strings by default would break existing code, so this is planned for 7.0. Until then, a typecast function can be registered with `set_typecast()`.\n","author":{"url":"https://github.com/Cito","@type":"Person","name":"Cito"},"datePublished":"2026-11-22T20:41:35Z","url":"https://github.com/PyGreSQL/PyGreSQL/issues/140"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a435ea2e-6869-5da6-fc06-403d07e899a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC04:A12D8:3175C:45424:6B046166 |
| html-safe-nonce | 072ce43ec704ab4e6b6e3166ec84176f4453011a69c0617a9f357575bf978518 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzA0OkExMkQ4OjMxNzVDOjQ1NDI0OjZCMDQ2MTY2IiwidmlzaXRvcl9pZCI6IjUxMzU1ODcyNDY2NTk1ODc1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ed86f4781187fb3cdd25b7497bc0c210d86ab6d75e38a9958a8e7f90d33c88cf |
| hovercard-subject-tag | issue:6547523664 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PyGreSQL/PyGreSQL/140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38c0e69db390baeb1b1fe24ae13c4d73039dbf5bab030fbc1ce2af7a7cf235f4/PyGreSQL/PyGreSQL/issues/140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38c0e69db390baeb1b1fe24ae13c4d73039dbf5bab030fbc1ce2af7a7cf235f4/PyGreSQL/PyGreSQL/issues/140 |
| og:image:alt | PyGreSQL has no support for range types (PostgreSQL 9.2) and multirange types (PostgreSQL 14). Values are returned as strings like '[1,5)', 'empty' or '{[1,5),[7,9)}', and there is no Python type t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Cito |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PyGreSQL/PyGreSQL git https://github.com/PyGreSQL/PyGreSQL.git |
| octolytics-dimension-user_id | 60857770 |
| octolytics-dimension-user_login | PyGreSQL |
| octolytics-dimension-repository_id | 51212044 |
| octolytics-dimension-repository_nwo | PyGreSQL/PyGreSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51212044 |
| octolytics-dimension-repository_network_root_nwo | PyGreSQL/PyGreSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03e114520787ad27289207f153520ef97461127c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width