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

feat: support DISCARD ALL command and add npgsql client test #16432

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Apr 22, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

DISCARD ALL and pg_range (#16425) are all the missing features for the Npgsql support.

This improvement is based on #10177

Checklist

  • I have written necessary rustdoc comments
  • I will enable the client test once we create the nightly image tomorrow.
  • All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

This PR introduces a new command DISCARD ALL to address the compatibility issue with Npgsql, a C# Postgres client library. I tested the connection and provided a few demo code that can be used for documentation.

NOTE: Npgsql 8+ requires specifying ServerCompatibilityMode=NoTypeLoading in the connection string. Npgsql 7+ doesn't have this problem.

Verfied version matrix

Ver Checked
Npgsql 8.0
Npgsql 7.0
Npgsql 6.0

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@neverchanje neverchanje marked this pull request as ready for review April 22, 2024 06:36
Copy link
Contributor

@chenzl25 chenzl25 left a comment

Choose a reason for hiding this comment

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

LGTM

src/frontend/src/handler/discard.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants