MCPcopy Create free account
hub / github.com/apache/cloudberry / GetPrepStmtNumber

Function GetPrepStmtNumber

contrib/postgres_fdw/connection.c:669–673  ·  view source on GitHub ↗

* Assign a "unique" number for a prepared statement. * * This works much like GetCursorNumber, except that we never reset the counter * within a session. That's because we can't be 100% sure we've gotten rid * of all prepared statements on all connections, and it's not really worth * increasing the risk of prepared-statement name collisions by resetting. */

Source from the content-addressed store, hash-verified

667 * increasing the risk of prepared-statement name collisions by resetting.
668 */
669unsigned int
670GetPrepStmtNumber(PGconn *conn)
671{
672 return ++prep_stmt_number;
673}
674
675/*
676 * Submit a query and wait for the result.

Callers 1

prepare_foreign_modifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected