pgsql: Fix array allocation bugs in SetExplainExtensionState.

2025-09-25 Thread Robert Haas
Fix array allocation bugs in SetExplainExtensionState. If we already have an extension_state array but see a new extension_id much larger than the highest the extension_id we've previously seen, the old code might have failed to expand the array to a large enough size, leading to disaster. Also, i

pgsql: Fix array allocation bugs in SetExplainExtensionState.

2025-09-25 Thread Robert Haas
Fix array allocation bugs in SetExplainExtensionState. If we already have an extension_state array but see a new extension_id much larger than the highest the extension_id we've previously seen, the old code might have failed to expand the array to a large enough size, leading to disaster. Also, i