Skip to content

Commit

Permalink
sql/catalog: avoid making copies of table descriptors
Browse files Browse the repository at this point in the history
Previously, we would copy table descriptors even if no
PostDeserialization changes would apply eagerly. This could lead to
extra over head when accessing a large number of tables in the
pg_catalog tables. To address this, this patch will make a copy only if
we need to modify the original descriptor because of a post
deserialization change.

Fixes: #121579

Release note: None
  • Loading branch information
fqazi committed Aug 2, 2024
1 parent 65aa1e3 commit 9e71096
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 68 deletions.
Loading

0 comments on commit 9e71096

Please sign in to comment.