Title: Return the transaction id types as int in pg and pgdb · Issue #130 · PyGreSQL/PyGreSQL · GitHub
Open Graph Title: Return the transaction id types as int in pg and pgdb · Issue #130 · PyGreSQL/PyGreSQL
X Title: Return the transaction id types as int in pg and pgdb · Issue #130 · PyGreSQL/PyGreSQL
Description: The transaction id types are returned inconsistently: type pg pgdb xid int str cid int str xid8 (PostgreSQL 13) str str xid8 is returned by pg_current_xact_id() and the other functions that replace the txid_* functions (which return bigi...
Open Graph Description: The transaction id types are returned inconsistently: type pg pgdb xid int str cid int str xid8 (PostgreSQL 13) str str xid8 is returned by pg_current_xact_id() and the other functions that replace...
X Description: The transaction id types are returned inconsistently: type pg pgdb xid int str cid int str xid8 (PostgreSQL 13) str str xid8 is returned by pg_current_xact_id() and the other functions that replace...
Opengraph URL: https://github.com/PyGreSQL/PyGreSQL/issues/130
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Return the transaction id types as int in pg and pgdb","articleBody":"The transaction id types are returned inconsistently:\n\n| type | `pg` | `pgdb` |\n|------|------|--------|\n| `xid` | `int` | `str` |\n| `cid` | `int` | `str` |\n| `xid8` (PostgreSQL 13) | `str` | `str` |\n\n`xid8` is returned by `pg_current_xact_id()` and the other functions that replace the `txid_*` functions (which return `bigint`, i.e. `int`). `oid` and, since 6.3, `oid8` are `int` in both modules.\n\nChanging the defaults would break code that works with the returned strings, so I plan to do it in 7.0: return `xid`, `xid8` and `cid` as `int` in `pg` and `pgdb`, also as elements of arrays and records. Until then, the typecasts can be set explicitly:\n\n```python\npg.set_typecast('xid8', int)\npgdb.set_typecast(['xid', 'xid8', 'cid'], int)\n```\n","author":{"url":"https://github.com/Cito","@type":"Person","name":"Cito"},"datePublished":"2026-11-22T20:41:08Z","url":"https://github.com/PyGreSQL/PyGreSQL/issues/130"}
| 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:e3f48646-51dc-9bfc-3d82-cc806dbc023c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8558:2815D1:335A4:474B1:6B046166 |
| html-safe-nonce | 61916f6c801883edb05f8dff4c0dca204904b6a9e468553b564189f0cb3a3746 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTU4OjI4MTVEMTozMzVBNDo0NzRCMTo2QjA0NjE2NiIsInZpc2l0b3JfaWQiOiI3MDc3NDM5MDMyNzU3ODcwOTUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2edd55558bf66e55d4e22b99b853f611250ebae2fdde2772c4b0248203f61f11 |
| hovercard-subject-tag | issue:6547519253 |
| 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/130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd3a0b7be19bef3dc7d68748dab5f68a8d8a7d61a9793af5a1442278929ae6f1/PyGreSQL/PyGreSQL/issues/130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd3a0b7be19bef3dc7d68748dab5f68a8d8a7d61a9793af5a1442278929ae6f1/PyGreSQL/PyGreSQL/issues/130 |
| og:image:alt | The transaction id types are returned inconsistently: type pg pgdb xid int str cid int str xid8 (PostgreSQL 13) str str xid8 is returned by pg_current_xact_id() and the other functions that replace... |
| 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