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 authored and staticlibs committed Apr 12, 2024
1 parent 015d7d6 commit 3d80643
Showing 1 changed file with 267 additions and 110 deletions.
Loading

0 comments on commit 3d80643

Please sign in to comment.