ext/pdo_pgsql: Retrieve the memory usage of the query result resource (#14260)

`getAttribute()` can now retrieve the memory usage of query results.
`PDO::PGSQL_ATTR_RESULT_MEMORY_SIZE` was added for this feature.

closes #14260
This commit is contained in:
武田 憲太郎 2024-05-15 11:15:33 +00:00 committed by Saki Takamachi
parent ba534e70e6
commit b7dd3d8347
No known key found for this signature in database
GPG key ID: E4A36F6D37931A8B
9 changed files with 96 additions and 2 deletions

View file

@ -86,6 +86,7 @@ extern const struct pdo_stmt_methods pgsql_stmt_methods;
enum {
PDO_PGSQL_ATTR_DISABLE_PREPARES = PDO_ATTR_DRIVER_SPECIFIC,
PDO_PGSQL_ATTR_RESULT_MEMORY_SIZE,
};
struct pdo_pgsql_lob_self {