[php-src] PR #14584: ext/pgsql: adding pg_close_stmt.
| From: | devnexen | Date: | Sun, 16 Jun 2024 12:07:13 +0000 |
| Subject: | [php-src] PR #14584: ext/pgsql: adding pg_close_stmt. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26707@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14584
Author: devnexen
up to postgresql 17, when done with a prepared statement, we could release it with DEALLOCATE sql
command which is fine ; until we want to implement a cache solution based on statement ids.
Since PostgreSQL 17, PQclosePrepared uses internally the
close protocol allowing to
reuse the statement name while still freeing it. Since the close protocol implementation had been
added on libpq within this release, no way to reimplement it.