Skip to main content
Version: 2.x

gp_session_endpoints

The gp_session_endpoints view lists the endpoints created for all active parallel retrieve cursors declared by the current session user in the current session.

Endpoints exist only for the duration of the transaction that defines the parallel retrieve cursor, or until the cursor is closed.

columntypereferencesdescription
gp_segment_idintegerThe QE's endpoint gp_segment_id.
auth_tokentextThe authentication token for a retrieve session.
cursornametextThe name of the parallel retrieve cursor.
sessionidintegerThe identifier of the session in which the parallel retrieve cursor was created.
hostnamevarchar(64)The name of the host from which to retrieve the data for the endpoint.
portintegerThe port number from which to retrieve the data for the endpoint.
usernametextThe name of the session user (not the current user); you need to initiate the retrieve session as this user.
statetextThe state of the endpoint; the valid states are:

READY: The endpoint is ready to be retrieved.

ATTACHED: The endpoint is attached to a retrieve connection.

RETRIEVING: A retrieve session is retrieving data from the endpoint at this moment.

FINISHED: The endpoint has been fully retrieved.

RELEASED: Due to an error, the endpoint has been released and the connection closed.
endpointnametextThe endpoint identifier; you provide this identifier to the RETRIEVE command.