Title: Redesign connect() in pgdb (and pg) · Issue #114 · PyGreSQL/PyGreSQL · GitHub
Open Graph Title: Redesign connect() in pgdb (and pg) · Issue #114 · PyGreSQL/PyGreSQL
X Title: Redesign connect() in pgdb (and pg) · Issue #114 · PyGreSQL/PyGreSQL
Description: The signatures and semantics of pgdb.connect() are hard to use and partly ambiguous (see the discussion in #77): The dsn format host:dbname:user:password:opt cannot contain a port; the port can only be passed as part of host (host:port)....
Open Graph Description: The signatures and semantics of pgdb.connect() are hard to use and partly ambiguous (see the discussion in #77): The dsn format host:dbname:user:password:opt cannot contain a port; the port can onl...
X Description: The signatures and semantics of pgdb.connect() are hard to use and partly ambiguous (see the discussion in #77): The dsn format host:dbname:user:password:opt cannot contain a port; the port can onl...
Opengraph URL: https://github.com/PyGreSQL/PyGreSQL/issues/114
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redesign connect() in pgdb (and pg)","articleBody":"The signatures and semantics of `pgdb.connect()` are hard to use and partly ambiguous (see the discussion in #77):\n\n- The `dsn` format `host:dbname:user:password:opt` cannot contain a port; the port can only be passed as part of `host` (`host:port`).\n- When both `dsn` and keyword parameters are given, they override each other in a non-obvious way.\n- Additional keyword arguments are converted to a connection string, which is passed as `dbname`. This fails when `database` is a URI, `None` values are passed as `'None'`, and `bytes` values as their Python representation.\n- In C, connections are made with `PQconnectdbParams` with a fixed set of keywords, so arbitrary connection parameters cannot be passed directly (see #26).\n\nProposal: a clear signature like in other drivers (`host`, `port`, `dbname`/`database`, `user`, `password`, plus arbitrary libpq keywords), with keyword values passed directly via `PQconnectdbParams` instead of a connection string, `None` values ignored, and a `conninfo` string or URI as an alternative to the keywords. This would be a breaking change, so it is planned for 7.0.\n","author":{"url":"https://github.com/Cito","@type":"Person","name":"Cito"},"datePublished":"2026-11-22T11:47:49Z","url":"https://github.com/PyGreSQL/PyGreSQL/issues/114"}
| 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:abef229e-8da4-50ba-2ff7-271099ebdc4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC2C:23D7A:3251F:46380:6B046168 |
| html-safe-nonce | 0027811ada04960a8cf105417ca219b36995f18849cc0c498a72d0fbdf0063e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzJDOjIzRDdBOjMyNTFGOjQ2MzgwOjZCMDQ2MTY4IiwidmlzaXRvcl9pZCI6IjcyMTMyNzY5NDY5NzU5NzM3MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d772d66fff34f276e0ca4de740140b9447ecc50dd1ecd210742cbe9133e17e6a |
| hovercard-subject-tag | issue:6542001705 |
| 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/114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/047da47f34575e6787325a5b2ca2ca561e4df19f41d3e2dc6f11f306cc2ea5c1/PyGreSQL/PyGreSQL/issues/114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/047da47f34575e6787325a5b2ca2ca561e4df19f41d3e2dc6f11f306cc2ea5c1/PyGreSQL/PyGreSQL/issues/114 |
| og:image:alt | The signatures and semantics of pgdb.connect() are hard to use and partly ambiguous (see the discussion in #77): The dsn format host:dbname:user:password:opt cannot contain a port; the port can onl... |
| 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