September 26, 2024: PostgreSQL 17 Released!
Unsupported versions: 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

getresult

Name

getresult -- gets the values returned by the query

Synopsis

getresult()

Parameters

none

Return Type

list

List of tuples.

Exceptions

SyntaxError

Too many arguments.

pg.error

Invalid previous result.

Description

getresult() method returns the list of the values returned by the query. More information about this result may be accessed using listfields, fieldname and fieldnum methods.