Title: DB.get_tables() does not list partitioned tables · Issue #136 · PyGreSQL/PyGreSQL · GitHub
Open Graph Title: DB.get_tables() does not list partitioned tables · Issue #136 · PyGreSQL/PyGreSQL
X Title: DB.get_tables() does not list partitioned tables · Issue #136 · PyGreSQL/PyGreSQL
Description: DB.get_tables() is documented as a shortcut for get_relations('r'), so it only returns ordinary tables. Partitioned tables (relkind p, PostgreSQL 10) are missing, while their partitions are listed: db.query('create table pt(id int) parti...
Open Graph Description: DB.get_tables() is documented as a shortcut for get_relations('r'), so it only returns ordinary tables. Partitioned tables (relkind p, PostgreSQL 10) are missing, while their partitions are listed:...
X Description: DB.get_tables() is documented as a shortcut for get_relations('r'), so it only returns ordinary tables. Partitioned tables (relkind p, PostgreSQL 10) are missing, while their partitions are...
Opengraph URL: https://github.com/PyGreSQL/PyGreSQL/issues/136
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DB.get_tables() does not list partitioned tables","articleBody":"`DB.get_tables()` is documented as a shortcut for `get_relations('r')`, so it only returns ordinary tables. Partitioned tables (relkind `p`, PostgreSQL 10) are missing, while their partitions are listed:\n\n```python\ndb.query('create table pt(id int) partition by range(id)')\ndb.query('create table pt1 partition of pt for values from (0) to (100)')\ndb.get_tables() # ['public.pt1'], without 'public.pt'\n```\n\nPartitioned tables can be used like other tables with the DB wrapper (`get_attnames()`, `insert()`, `get()`...), and psql's `\\dt` lists both kinds.\n\nI plan to return the relkinds `r` and `p` in `get_tables()`. The list of relkinds in the documentation of `get_relations()` is also outdated: it mentions `s` (special), which does not exist anymore, and lacks `m` (materialized view), `f` (foreign table), `p` (partitioned table) and `I` (partitioned index).\n","author":{"url":"https://github.com/Cito","@type":"Person","name":"Cito"},"datePublished":"2026-11-22T20:41:28Z","url":"https://github.com/PyGreSQL/PyGreSQL/issues/136"}
| 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:f5a88deb-f61f-f0ef-ffe9-6e84429c87af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBD4:199A13:18CDC1:22E6DF:6B046607 |
| html-safe-nonce | 44dc82c6f167192fc9018179fc927f4ac62a2c331e145fdd8d0040f143cac48a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkQ0OjE5OUExMzoxOENEQzE6MjJFNkRGOjZCMDQ2NjA3IiwidmlzaXRvcl9pZCI6IjE3NTc5MDUxMDY0NTM2ODU3NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8bb863d4585cf710e371c46d46e63b1a55a9a3f257aee333576bffd722968e30 |
| hovercard-subject-tag | issue:6547522516 |
| 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/136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e5a3b73f0fa06d36ba0d27a9c7143ad9b905a6caa7458cc4516909beb3bb834/PyGreSQL/PyGreSQL/issues/136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e5a3b73f0fa06d36ba0d27a9c7143ad9b905a6caa7458cc4516909beb3bb834/PyGreSQL/PyGreSQL/issues/136 |
| og:image:alt | DB.get_tables() is documented as a shortcut for get_relations('r'), so it only returns ordinary tables. Partitioned tables (relkind p, PostgreSQL 10) are missing, while their partitions are listed:... |
| 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 | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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