Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52a3ed9

Browse files
committed
Added async query capability. Original patch by
Kai Londenberg, modified by Joe Conway
1 parent1cc9299 commit52a3ed9

File tree

8 files changed

+686
-166
lines changed

8 files changed

+686
-166
lines changed

‎contrib/dblink/README.dblink

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* And contributors:
88
* Darko Prenosil <Darko.Prenosil@finteh.hr>
99
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
10+
* Kai Londenberg (K.Londenberg@librics.de)
1011
*
1112
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
1213
* ALL RIGHTS RESERVED;
@@ -31,6 +32,9 @@
3132
*/
3233

3334
Release Notes:
35+
27 August 2006
36+
- Added async query capability. Original patch by
37+
Kai Londenberg (K.Londenberg@librics.de), modified by Joe Conway
3438
Version 0.7 (as of 25 Feb, 2004)
3539
- Added new version of dblink, dblink_exec, dblink_open, dblink_close,
3640
and, dblink_fetch -- allows ERROR on remote side of connection to
@@ -85,75 +89,7 @@ Installation:
8589

8690
psql template1 < dblink.sql
8791

88-
installs following functions into database template1:
89-
90-
connection
91-
------------
92-
dblink_connect(text) RETURNS text
93-
- opens an unnamed connection that will persist for duration of
94-
current backend or until it is disconnected
95-
dblink_connect(text,text) RETURNS text
96-
- opens a named connection that will persist for duration of current
97-
backend or until it is disconnected
98-
dblink_disconnect() RETURNS text
99-
- disconnects the unnamed persistent connection
100-
dblink_disconnect(text) RETURNS text
101-
- disconnects a named persistent connection
102-
103-
cursor
104-
------------
105-
dblink_open(text,text [, bool fail_on_error]) RETURNS text
106-
- opens a cursor using unnamed connection already opened with
107-
dblink_connect() that will persist for duration of current backend
108-
or until it is closed
109-
dblink_open(text,text,text [, bool fail_on_error]) RETURNS text
110-
- opens a cursor using a named connection already opened with
111-
dblink_connect() that will persist for duration of current backend
112-
or until it is closed
113-
dblink_fetch(text, int [, bool fail_on_error]) RETURNS setof record
114-
- fetches data from an already opened cursor on the unnamed connection
115-
dblink_fetch(text, text, int [, bool fail_on_error]) RETURNS setof record
116-
- fetches data from an already opened cursor on a named connection
117-
dblink_close(text [, bool fail_on_error]) RETURNS text
118-
- closes a cursor on the unnamed connection
119-
dblink_close(text,text [, bool fail_on_error]) RETURNS text
120-
- closes a cursor on a named connection
121-
122-
query
123-
------------
124-
dblink(text,text [, bool fail_on_error]) RETURNS setof record
125-
- returns a set of results from remote SELECT query; the first argument
126-
is either a connection string, or the name of an already opened
127-
persistant connection
128-
dblink(text [, bool fail_on_error]) RETURNS setof record
129-
- returns a set of results from remote SELECT query, using the unnamed
130-
connection already opened with dblink_connect()
131-
132-
execute
133-
------------
134-
dblink_exec(text, text [, bool fail_on_error]) RETURNS text
135-
- executes an INSERT/UPDATE/DELETE query remotely; the first argument
136-
is either a connection string, or the name of an already opened
137-
persistant connection
138-
dblink_exec(text [, bool fail_on_error]) RETURNS text
139-
- executes an INSERT/UPDATE/DELETE query remotely, using connection
140-
already opened with dblink_connect()
141-
142-
misc
143-
------------
144-
dblink_current_query() RETURNS text
145-
- returns the current query string
146-
dblink_get_pkey(text) RETURNS setof text
147-
- returns the field names of a relation's primary key fields
148-
dblink_build_sql_insert(text,int2vector,int2,_text,_text) RETURNS text
149-
- builds an insert statement using a local tuple, replacing the
150-
selection key field values with alternate supplied values
151-
dblink_build_sql_delete(text,int2vector,int2,_text) RETURNS text
152-
- builds a delete statement using supplied values for selection
153-
key field values
154-
dblink_build_sql_update(text,int2vector,int2,_text,_text) RETURNS text
155-
- builds an update statement using a local tuple, replacing the
156-
selection key field values with alternate supplied values
92+
installs dblink functions into database template1
15793

15894
Documentation:
15995

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp