18th October 2018: PostgreSQL 11 Released!
Unsupported versions: 7.3 / 7.2 / 7.1

fileno

Name

fileno -- return the socket used to connect to the database

Synopsis

fileno()

Parameters

none

Return Type

socket id

The underlying socket id used to connect to the database.

Exceptions

TypeError

Too many (any) arguments.

Description

fileno() method returns the underlying socket id used to connect to the database. This is useful for use in select calls, etc.