(PHP 8 >= 8.5.0)
pg_service — Gets the service name of the connection
Returns the name of the connection service used to establish the connection, as defined in the connection service file.
This function is only available if PHP has been built against libpq 18 or later.
connectionPgSql\Connection
nesnesi. bağlantı null ise, öntanımlı bağlantı
kullanılır.Öntanımlı bağlantı pg_connect()
veya pg_pconnect() işleviyle kurulmuş son bağlantıdır.
PHP 8.1.0 ve sonrasında, öntanımlı bağlantının kullanımı önerilmemektedir.
A string containing the service name of the connection, or an empty string if no service was used.