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

sql: changed pg_catalog data type columns to "char" to match postgres #65101

Merged
merged 1 commit into from
May 13, 2021

Conversation

mnovelodou
Copy link
Contributor

@mnovelodou mnovelodou commented May 13, 2021

Previously, some columns where is expected "char" datatype
it is created as TEXT
This was inadequate because some tools are expecting these
columns to have "char" datatype
To address this, this patch change the data types from these
columns

Release note (backward-incompatible change): Switched types from TEXT
to "char" for compatibility with postgres in the following columns:

pg_constraint (confdeltype, confmatchtype, confudptype, contype)
pg_operator (oprkind)
pg_prog (proargmodes)
pg_rewrite (ev_enabled, ev_type)
pg_trigger (tgenabled)

Fixes #64434

@blathers-crl
Copy link

blathers-crl bot commented May 13, 2021

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

I have added a few people who may be able to assist in reviewing:

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels May 13, 2021
@blathers-crl blathers-crl bot requested review from arulajmani and rafiss May 13, 2021 00:06
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

Change looks good to me, but looks like this is breaking a few tests that might need updating. Also, could you add that this change is backwards incompatible in the release note?

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rafiss)

@mnovelodou mnovelodou force-pushed the pg_catalog_test_to_char branch from 9eca599 to 238b865 Compare May 13, 2021 16:19
@blathers-crl
Copy link

blathers-crl bot commented May 13, 2021

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

:lgtm:

The "backwards-incompatible-change" should go where the sql change goes, so `Release note (backwards-incompatible change). Also, could you add the fact that these columns were previously of type TEXT but have now been changed to "char" in the release note as well?

Once you update the commit message, I can bors this!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

Previously, some columns where is expected "char" datatype
it is created as TEXT
This was inadequate because some tools are expecting these
columns to have "char" datatype
To address this, this patch change the data types from these
columns

Release note (backward-incompatible change): Switched types from TEXT
to "char" for compatibility with postgres in the following columns:

pg_constraint (confdeltype, confmatchtype, confudptype, contype)
pg_operator (oprkind)
pg_prog (proargmodes)
pg_rewrite (ev_enabled, ev_type)
pg_trigger (tgenabled)

Fixes cockroachdb#64434
@mnovelodou mnovelodou force-pushed the pg_catalog_test_to_char branch from 238b865 to 83790f6 Compare May 13, 2021 18:18
@arulajmani
Copy link
Collaborator

Thanks!

bors r+

@craig
Copy link
Contributor

craig bot commented May 13, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: incorrect types for some pg_constraint columns
3 participants