Comunitatea PHP Romania
 

 
pg_cursors

43.36. pg_cursors

The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:

  • via the DECLARE statement in SQL

  • via the Bind message in the frontend/backend protocol, as described in Section 44.2.3

  • via the Server Programming Interface (SPI), as described in Section 41.1

The pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them, unless they have been declared WITH HOLD. Therefore non-holdable cursors are only present in the view until the end of their creating transaction.

Note: Cursors are used internally to implement some of the components of PostgreSQL, such as procedural languages. Therefore, the pg_cursors view may include cursors that have not been explicitly created by the user.

Table 43-36. pg_cursors Columns

NameTypeDescription 
nametextThe name of the cursor 
statementtextThe verbatim query string submitted to declare this cursor 
is_holdableboolean true if the cursor is holdable (that is, it can be accessed after the transaction that declared the cursor has committed); false otherwise  
is_binaryboolean true if the cursor was declared BINARY; false otherwise  
is_scrollableboolean true if the cursor is scrollable (that is, it allows rows to be retrieved in a nonsequential manner); false otherwise  
creation_timetimestamptzThe time at which the cursor was declared 

The pg_cursors view is read only.

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
acasa , in pat
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Best Credit Cards | Flights | Internet Advertising | Mortgages | Car Finance
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis