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

pgbuiltins: pg_blocking_pids #91068

Closed
Tracked by #25213
jordanlewis opened this issue Nov 1, 2022 · 2 comments · Fixed by #92253
Closed
Tracked by #25213

pgbuiltins: pg_blocking_pids #91068

jordanlewis opened this issue Nov 1, 2022 · 2 comments · Fixed by #92253
Labels
A-sql-builtins SQL built-in functions and semantics thereof. A-sql-pgcompat Semantic compatibility with PostgreSQL C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) E-easy Easy issue to tackle, requires little or no CockroachDB experience E-quick-win Likely to be a quick win for someone experienced. good first issue T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)

Comments

@jordanlewis
Copy link
Member

jordanlewis commented Nov 1, 2022

Support pg_blocking_pids builtin. Needed for pgadmin.

https://www.postgresql.org/docs/current/functions-info.html

We can implement this by making it return an empty array, since Cockroach doesn't use PIDs.

Jira issue: CRDB-21093

@jordanlewis jordanlewis added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-sql-pgcompat Semantic compatibility with PostgreSQL A-sql-builtins SQL built-in functions and semantics thereof. labels Nov 1, 2022
@blathers-crl blathers-crl bot added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Nov 1, 2022
@rafiss rafiss added E-easy Easy issue to tackle, requires little or no CockroachDB experience E-quick-win Likely to be a quick win for someone experienced. labels Nov 17, 2022
@girishv-tw
Copy link
Contributor

Hi @jordanlewis ,
I am new to working on cockroach db and was thinking of picking up this issue. Is that ok ?
I have performed an initial analysis on the issue and from that i have arrived at a conclusion that a resolution to the issue would be to , add a builtin for pg_blocking_pids with the return type as an array of integers and the function returning an empty array of integers in this file
Could you help me assert that this is the correct fix ?

@jordanlewis
Copy link
Member Author

Yes, sounds right to me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-builtins SQL built-in functions and semantics thereof. A-sql-pgcompat Semantic compatibility with PostgreSQL C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) E-easy Easy issue to tackle, requires little or no CockroachDB experience E-quick-win Likely to be a quick win for someone experienced. good first issue T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants