Method

PgsqlConnectionPoolrelease

Declaration

void
pgsql_connection_pool_release (
  PgsqlConnectionPool* self,
  PgsqlConnection* connection
)

Description

Returns connection back to the pool.

If the connection has failed, it will be removed from the pool and a new connection will be created if needed to maintain the minimum pool size.

In C code, you probably want to use PgsqlConnectionLease API for RAII-style auto-cleanup.

Parameters

connection

Type: PgsqlConnection

A PgsqlConnection.

The instance takes ownership of the data, and is responsible for freeing it.