forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c73395
committed
Add fastpaths for when no objects are found
If there are no objects found, there is no reason to inspect theresult columns and mallocing a zero-sized (which will be 1 bytein reality) heap buffer for it. Add a fast-path for immediatelyreturning like how other object inspection functions are alreadydoing it.Reviewed-by: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://postgr.es/m/C2F05B3C-1414-45DD-AE09-6FEE4D0F89BD@yesql.se1 parent1a123e3 commit9c73395
1 file changed
+9
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4314 | 4314 |
| |
4315 | 4315 |
| |
4316 | 4316 |
| |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
4317 | 4320 |
| |
4318 | 4321 |
| |
4319 | 4322 |
| |
| |||
4352 | 4355 |
| |
4353 | 4356 |
| |
4354 | 4357 |
| |
| 4358 | + | |
| 4359 | + | |
4355 | 4360 |
| |
4356 | 4361 |
| |
4357 | 4362 |
| |
| |||
5817 | 5822 |
| |
5818 | 5823 |
| |
5819 | 5824 |
| |
5820 |
| - | |
| 5825 | + | |
5821 | 5826 |
| |
5822 | 5827 |
| |
5823 | 5828 |
| |
| |||
5837 | 5842 |
| |
5838 | 5843 |
| |
5839 | 5844 |
| |
| 5845 | + | |
| 5846 | + | |
5840 | 5847 |
| |
5841 | 5848 |
| |
5842 | 5849 |
| |
| |||
5866 | 5873 |
| |
5867 | 5874 |
| |
5868 | 5875 |
| |
| 5876 | + | |
5869 | 5877 |
| |
5870 | 5878 |
| |
5871 | 5879 |
| |
|
0 commit comments
Comments
(0)