Skip to content

Conversation

@mjgarton
Copy link
Collaborator

@mjgarton mjgarton commented Dec 1, 2025

Add support for describing tables in psql via \d my_table for example.

`pg_get_constraintdef` can optionally take a boolean as a second
parameter, so update the UDF to support this.
Add a UDF for `pg_partition_ancestors`
Add test for describing an example table (`\d customer`) to ensure we
handle it properly.  Most of the queries already worked fine (only 2
failed) but I added them all for completeness.
Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sunng87 sunng87 merged commit d246474 into datafusion-contrib:master Dec 1, 2025
6 checks passed
sunng87 pushed a commit that referenced this pull request Dec 1, 2025
* Improve `pg_get_constraintdef` UDF

`pg_get_constraintdef` can optionally take a boolean as a second
parameter, so update the UDF to support this.

* Implement `pg_partition_ancestors`

Add a UDF for `pg_partition_ancestors`

* Add tests for describe table in psql

Add test for describing an example table (`\d customer`) to ensure we
handle it properly.  Most of the queries already worked fine (only 2
failed) but I added them all for completeness.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe table with official psql client does not work

2 participants