Skip to content

Commit

Permalink
Improve performance of sp_describe_undeclared_parameters (babelfish-f…
Browse files Browse the repository at this point in the history
…or-postgresql#1905)

sp_describe_undeclared_parameters is slow. The issue is reported here: babelfish-for-postgresql#1317.

Initially, we used to create a query in C for every parameter passed as an argument to
sp_describe_undeclared_parameters and then execute it. This was taking huge amount of time as it used JOINS among
multiple views like sys.objects, sys.columns, sys.types T. In this commit, we have replaced the use of such views as
much as possible with pg catalogs. This aids to the improvement in performance.

Task: BABEL-3705
Signed-off-by: Shameem Ahmed <[email protected]>
  • Loading branch information
ahmed-shameem committed Nov 20, 2023
1 parent 71681a8 commit 4b1a7c6
Showing 1 changed file with 299 additions and 130 deletions.
Loading

0 comments on commit 4b1a7c6

Please sign in to comment.