| 5181 | */ |
| 5182 | |
| 5183 | ArrayBuildState * |
| 5184 | initArrayResult(Oid element_type, MemoryContext rcontext, bool subcontext) |
| 5185 | { |
| 5186 | /* |
| 5187 | * When using a subcontext, we can afford to start with a somewhat larger |
| 5188 | * initial array size. Without subcontexts, we'd better hope that most of |
| 5189 | * the states stay small ... |
| 5190 | */ |
| 5191 | return initArrayResultWithSize(element_type, rcontext, subcontext, |
| 5192 | subcontext ? 64 : 8); |
| 5193 | } |
| 5194 | |
| 5195 | /* |
| 5196 | * initArrayResultWithSize |
no test coverage detected