Files
documentdb/pg_documentdb
Deepak Bisht 535e5713ba Merged PR 1660646: [Bug Fix] [Point Read Path] - Add permission info on planned statements for PG > 16
### Does this PR have any customer impact?
No

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Bugfix

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Are you introducing any new config? If yes, do you have tests with and without them being set?
No

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description

- The asserts enabled build fails for missing permsInfo on planned statement, add it while creating the Point read plan

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix: Add permission information to planned statements for PostgreSQL versions greater than 16.

#### PR Summary
This pull request addresses a bug in the point read path by adding permission information to planned statements for PostgreSQL versions 16 and above. This change is part of optimizing the read hotpath as per the linked work item.
- In `/oss/pg_documentdb/src/planner/documents_custom_planner.c`, added `permInfos` to the planned statement for PostgreSQL versions 16 and above.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #4157027
2025-05-09 14:08:53 +08:00
..