Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_catalog: populate atttypmod for timestamp/interval types #111400

Merged
merged 1 commit into from Oct 4, 2023

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Sep 28, 2023

Previously, the atttypmod was not populated inside the pg_attribute catalog table. This meant that ORM's could not know the precision of these types properly. This patch will add precision to the pg_attribute table and formatting for the interval type to address this.

Fixes: #110787

Release note (bug fix): atttypmod in pg_attribute was not populated for timestamp / interval types.

@fqazi fqazi requested a review from a team as a code owner September 28, 2023 02:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, the atttypmod was not populated inside the pg_attribute
catalog table. This meant that ORM's could not know the precision of
these types properly.  This patch will add precision to the pg_attribute
table and formatting for the interval type to address this.

Fixes: cockroachdb#110787

Release note (bug fix): atttypmod in pg_attribute was
not populated for timestamp / interval types.
@fqazi fqazi requested a review from a team September 28, 2023 02:18
@fqazi fqazi added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Sep 28, 2023
Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

nice fix!

@fqazi
Copy link
Collaborator Author

fqazi commented Oct 4, 2023

@rafiss TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 4, 2023

Build succeeded:

@craig craig bot merged commit 450cad6 into cockroachdb:master Oct 4, 2023
8 checks passed
@BuonOmo
Copy link

BuonOmo commented Feb 18, 2024

For later adventurers, the backport was made in 23.1.13 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: format_type doesn't include length for time types columns
4 participants