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

[Backport 1.6.latest] Use the PID to terminate the session #658

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 6, 2023

Backport 5d4f3f5 from #568.

* The first element of the result is the PID
* Debug-level logging of high-level message + SQL
* Using redshift_connector `cursor.fetchone()`  returns `(<something>,)`
* Use cursor to call `select pg_terminate_backend({pid})` directly rather than using the `SQLConnectionManager`

---------

Co-authored-by: Mike Alfare <[email protected]>
(cherry picked from commit 5d4f3f5)
@github-actions github-actions bot requested a review from a team as a code owner November 6, 2023 18:17
@github-actions github-actions bot requested a review from mikealfare November 6, 2023 18:17
@cla-bot cla-bot bot added the cla:yes label Nov 6, 2023
@colin-rogers-dbt colin-rogers-dbt enabled auto-merge (squash) November 6, 2023 18:17
auto-merge was automatically disabled November 6, 2023 20:56

Pull request was closed

@colin-rogers-dbt colin-rogers-dbt merged commit 4a3a3a2 into 1.6.latest Nov 6, 2023
27 checks passed
@colin-rogers-dbt colin-rogers-dbt deleted the backport-568-to-1.6.latest branch November 6, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants