postgresql/doc/src/sgml/ref
Neil Conway 33e06ebccb Add a new system view, pg_cursors, that displays the currently available
cursors. Patch from Joachim Wieland, review and ediorialization by Neil
Conway. The view lists cursors defined by DECLARE CURSOR, using SPI, or
via the Bind message of the frontend/backend protocol. This means the
view does not list the unnamed portal or the portal created to implement
EXECUTE. Because we do list SPI portals, there might be more rows in
this view than you might expect if you are using SPI implicitly (e.g.
via a procedural language).

Per recent discussion on -hackers, the query string included in the
view for cursors defined by DECLARE CURSOR is based on
debug_query_string. That means it is not accurate if multiple queries
separated by semicolons are submitted as one query string. However,
there doesn't seem a trivial fix for that: debug_query_string
is better than nothing. I also changed SPI_cursor_open() to include
the source text for the portal it creates: AFAICS there is no reason
not to do this.

Update the documentation and regression tests, bump the catversion.
2006-01-18 06:49:30 +00:00
..
abort.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
allfiles.sgml Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the 2005-11-21 12:49:33 +00:00
alter_aggregate.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_conversion.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_database.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_domain.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
alter_function.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
alter_group.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
alter_index.sgml Cause ALTER INDEX OWNER to generate a warning and do nothing, rather than 2005-08-22 19:40:37 +00:00
alter_language.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
alter_opclass.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_operator.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_role.sgml Add new psql command \password for changing role password with client-side 2005-12-18 02:17:16 +00:00
alter_schema.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_sequence.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
alter_table.sgml there's a paragraph in the ALTER TABLE reference page that reads: 2005-12-08 21:35:36 +00:00
alter_tablespace.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_trigger.sgml Add documentation for ALTER TABLE ENABLE/DISABLE TRIGGER. 2005-08-24 17:24:19 +00:00
alter_type.sgml Update documentation to reflect the new ALTER OWNER rules for all 2005-10-13 22:44:51 +00:00
alter_user.sgml Add per-user and per-database connection limit options. 2005-07-31 17:19:22 +00:00
analyze.sgml Refer to GUC variables using <xref> tags rather than <varname> tags, 2004-03-09 16:57:47 +00:00
begin.sgml Allow commas in BEGIN, START TRANSACTION, and SET TRANSACTION, as required 2004-08-12 21:00:34 +00:00
checkpoint.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
close.sgml Add a new system view, pg_cursors, that displays the currently available 2006-01-18 06:49:30 +00:00
cluster.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
clusterdb.sgml Add reference to libpq environment variables for client applications. 2005-05-29 03:32:18 +00:00
comment.sgml Remove grammar productions for prefix and postfix % and ^ operators, 2005-06-08 21:15:29 +00:00
commit_prepared.sgml Two-phase commit. Original patch by Heikki Linnakangas, with additional 2005-06-17 22:32:51 +00:00
commit.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
copy.sgml Update COPY CSV \. wording for externally created files. 2005-12-28 14:38:32 +00:00
create_aggregate.sgml Spellchecking run, final cleanups 2005-11-04 23:14:02 +00:00
create_cast.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
create_constraint.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
create_conversion.sgml Documentation tweak: add spaces around the brackets in the description 2006-01-11 22:16:39 +00:00
create_database.sgml Add per-user and per-database connection limit options. 2005-07-31 17:19:22 +00:00
create_domain.sgml Minor doc tweak: "NOT NULL" is redundant with "SERIAL" in example. 2005-12-25 01:41:15 +00:00
create_function.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
create_group.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
create_index.sgml R-tree is dead ... long live GiST. 2005-11-07 17:36:47 +00:00
create_language.sgml Create the pg_pltemplate system catalog to hold template information 2005-09-08 20:07:42 +00:00
create_opclass.sgml Document that CREATE OPERATOR CLASS amounts to granting public execute 2006-01-13 18:10:25 +00:00
create_operator.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
create_role.sgml Allow CREATE/ALTER ROLE PASSWORD NULL to allow restoring the default state 2005-12-23 16:46:39 +00:00
create_rule.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
create_schema.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
create_sequence.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
create_table_as.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
create_table.sgml Improve constraint_name wording. 2006-01-16 20:48:49 +00:00
create_tablespace.sgml Create 'default_tablespace' GUC variable that supplies a TABLESPACE 2004-11-05 19:17:13 +00:00
create_trigger.sgml Add documentation about the behavior of BEFORE triggers and referential 2005-12-09 19:39:41 +00:00
create_type.sgml Require the issuer of CREATE TYPE to own the functions mentioned in the 2006-01-13 18:06:45 +00:00
create_user.sgml Add per-user and per-database connection limit options. 2005-07-31 17:19:22 +00:00
create_view.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
createdb.sgml Add reference to libpq environment variables for client applications. 2005-05-29 03:32:18 +00:00
createlang.sgml Create the pg_pltemplate system catalog to hold template information 2005-09-08 20:07:42 +00:00
createuser.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
deallocate.sgml Allow the types of parameters to PREPARE to be inferred. If a parameter's 2006-01-15 22:18:47 +00:00
declare.sgml Add a new system view, pg_cursors, that displays the currently available 2006-01-18 06:49:30 +00:00
delete.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
drop_aggregate.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
drop_cast.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
drop_conversion.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_database.sgml DROP DATABASE IF EXISTS variant 2005-11-22 15:24:18 +00:00
drop_domain.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_function.sgml Document that utility commands such as DROP FUNCTION allow argument names 2005-05-26 20:05:03 +00:00
drop_group.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
drop_index.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_language.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
drop_opclass.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
drop_operator.sgml Support renaming of tablespaces, and changing the owners of 2004-06-25 21:55:59 +00:00
drop_owned.sgml Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the 2005-11-21 12:49:33 +00:00
drop_role.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
drop_rule.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
drop_schema.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_sequence.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_table.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_tablespace.sgml Support renaming of tablespaces, and changing the owners of 2004-06-25 21:55:59 +00:00
drop_trigger.sgml Minor documentation cleanup and improvement. 2004-09-20 00:04:19 +00:00
drop_type.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
drop_user.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
drop_view.sgml DROP objecttype IF EXISTS for the following objects: 2005-11-19 17:39:45 +00:00
dropdb.sgml Add reference to libpq environment variables for client applications. 2005-05-29 03:32:18 +00:00
droplang.sgml Add reference to libpq environment variables for client applications. 2005-05-29 03:32:18 +00:00
dropuser.sgml Clean up some stray remaining references to pg_shadow, pg_user, pg_group. 2005-08-15 02:40:36 +00:00
ecpg-ref.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
end.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
execute.sgml Allow the types of parameters to PREPARE to be inferred. If a parameter's 2006-01-15 22:18:47 +00:00
explain.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
fetch.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
grant.sgml Document the behavior of GRANT/REVOKE in cases where the privilege is 2005-10-20 19:18:01 +00:00
initdb.sgml Cause initdb to create a third standard database "postgres", which 2005-06-21 04:02:34 +00:00
insert.sgml Make SQL arrays support null elements. This commit fixes the core array 2005-11-17 22:14:56 +00:00
ipcclean.sgml More minor updates and copy-editing. 2005-01-04 03:58:16 +00:00
listen.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
load.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
lock.sgml Implement sharable row-level locks, and use them for foreign key references 2005-04-28 21:47:18 +00:00
move.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
notify.sgml More minor updates and copy-editing. 2005-01-04 00:39:53 +00:00
pg_config-ref.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
pg_controldata.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
pg_ctl-ref.sgml Spellchecking run, final cleanups 2005-11-04 23:14:02 +00:00
pg_dump.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
pg_dumpall.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
pg_resetxlog.sgml Spellchecking run, final cleanups 2005-11-04 23:14:02 +00:00
pg_restore.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
postgres-ref.sgml Make all command-line options of postmaster and postgres the same. See 2006-01-05 10:07:46 +00:00
postmaster.sgml Fix broken markup. 2006-01-06 01:35:09 +00:00
prepare_transaction.sgml Mention max_prepared_transactions in PREPARE TRANSACTION reference page, 2005-08-30 01:37:38 +00:00
prepare.sgml Allow the types of parameters to PREPARE to be inferred. If a parameter's 2006-01-15 22:18:47 +00:00
psql-ref.sgml Fix broken markup. 2005-12-20 00:51:45 +00:00
reassign_owned.sgml Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the 2005-11-21 12:49:33 +00:00
reindex.sgml Forgot to add pg_pltemplate to the list of shared system catalogs that 2005-09-12 16:43:29 +00:00
reindexdb.sgml Move reindexdb from /contrib to /bin. 2005-07-29 15:13:11 +00:00
release_savepoint.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
reset.sgml This patch fixes a few more uppercase GUC vars. I also removed an 2003-12-14 00:15:03 +00:00
revoke.sgml Document the behavior of GRANT/REVOKE in cases where the privilege is 2005-10-20 19:18:01 +00:00
rollback_prepared.sgml Two-phase commit. Original patch by Heikki Linnakangas, with additional 2005-06-17 22:32:51 +00:00
rollback_to.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
rollback.sgml Some mop-up work for savepoints (nested transactions). Store a small 2004-08-01 17:32:22 +00:00
savepoint.sgml Adjust examples to avoid using keywords as identifiers, per Honda Shigehiro. 2005-01-06 20:53:34 +00:00
select_into.sgml Add NOWAIT option to SELECT FOR UPDATE/SHARE. 2005-08-01 20:31:16 +00:00
select.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
set_constraints.sgml Fire non-deferred AFTER triggers immediately upon query completion, 2004-09-10 18:40:09 +00:00
set_role.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
set_session_auth.sgml Basic documentation for ROLEs. The user-manag chapter still needs to 2005-07-26 23:24:02 +00:00
set_transaction.sgml Fix misstatement in docs: CREATE TABLE AS is now part of the standard. 2004-09-26 23:48:07 +00:00
set.sgml Update documentation to reflect the fact that we now know exactly what 2004-08-10 00:55:08 +00:00
show.sgml Have SHOW ALL include variable descriptions. 2005-06-14 20:42:53 +00:00
start_transaction.sgml Minor documentation cleanup and improvement. 2004-09-20 00:04:19 +00:00
truncate.sgml Document that only a table's owner may TRUNCATE it. Per Keith Worthington. 2005-02-22 19:06:18 +00:00
unlisten.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
update.sgml Fix spelling error, per Michael Fuhr. 2005-10-12 23:19:22 +00:00
vacuum.sgml Make an editorial pass over the reference pages. 2005-11-01 21:09:51 +00:00
vacuumdb.sgml Add reference to libpq environment variables for client applications. 2005-05-29 03:32:18 +00:00