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_backend_pid() inconsistent with BackendKeyData #82564

Closed
dvarrazzo opened this issue Jun 8, 2022 · 1 comment · Fixed by #82952
Closed

pg_backend_pid() inconsistent with BackendKeyData #82564

dvarrazzo opened this issue Jun 8, 2022 · 1 comment · Fixed by #82952
Labels
A-tools-psycopg C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community X-blathers-triaged blathers was able to find an owner

Comments

@dvarrazzo
Copy link

dvarrazzo commented Jun 8, 2022

As of 22.1, CRDB sends the client the backend pid at connection, in the BackendKeyData message.

The pg_backend_pid() function, however, returns the constant -1 (#13097).

It would be useful if the function returned data consistent with the info sent at connection.

Jira issue: CRDB-16513

@dvarrazzo dvarrazzo added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Jun 8, 2022
@blathers-crl
Copy link

blathers-crl bot commented Jun 8, 2022

Hello, I am Blathers. I am here to help you get the issue triaged.

It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates.

I have CC'd a few people who may be able to assist you:

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 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 Jun 8, 2022
@craig craig bot closed this as completed in 277921b Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tools-psycopg C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants