Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/share/man/man3
opt
/
td-agent
/
embedded
/
share
/
man
/
man3
/
📁
..
📄
SPI_connect.3
(2.18 KB)
📄
SPI_copytuple.3
(1.76 KB)
📄
SPI_cursor_close.3
(1.71 KB)
📄
SPI_cursor_fetch.3
(2.05 KB)
📄
SPI_cursor_find.3
(1.71 KB)
📄
SPI_cursor_move.3
(1.92 KB)
📄
SPI_cursor_open.3
(3.49 KB)
📄
SPI_cursor_open_with_args.3
(3.77 KB)
📄
SPI_cursor_open_with_paramlist.3
(2.78 KB)
📄
SPI_exec.3
(1.72 KB)
📄
SPI_execp.3
(2.65 KB)
📄
SPI_execute.3
(7.86 KB)
📄
SPI_execute_plan.3
(3.14 KB)
📄
SPI_execute_plan_with_paramlist.3
(2.63 KB)
📄
SPI_execute_with_args.3
(3.87 KB)
📄
SPI_finish.3
(2.05 KB)
📄
SPI_fname.3
(1.86 KB)
📄
SPI_fnumber.3
(2.1 KB)
📄
SPI_freeplan.3
(1.7 KB)
📄
SPI_freetuple.3
(1.68 KB)
📄
SPI_freetuptable.3
(2.37 KB)
📄
SPI_getargcount.3
(1.83 KB)
📄
SPI_getargtypeid.3
(2.09 KB)
📄
SPI_getbinval.3
(2.24 KB)
📄
SPI_getnspname.3
(1.78 KB)
📄
SPI_getrelname.3
(1.68 KB)
📄
SPI_gettype.3
(1.87 KB)
📄
SPI_gettypeid.3
(1.79 KB)
📄
SPI_getvalue.3
(2.11 KB)
📄
SPI_is_cursor_plan.3
(2.33 KB)
📄
SPI_keepplan.3
(2.02 KB)
📄
SPI_modifytuple.3
(3.35 KB)
📄
SPI_palloc.3
(1.6 KB)
📄
SPI_pfree.3
(1.68 KB)
📄
SPI_pop.3
(1.45 KB)
📄
SPI_prepare.3
(5.21 KB)
📄
SPI_prepare_cursor.3
(2.53 KB)
📄
SPI_prepare_params.3
(2.34 KB)
📄
SPI_push.3
(2.2 KB)
📄
SPI_repalloc.3
(1.91 KB)
📄
SPI_returntuple.3
(2.12 KB)
📄
SPI_saveplan.3
(2.41 KB)
📄
SPI_scroll_cursor_fetch.3
(2.36 KB)
📄
SPI_scroll_cursor_move.3
(2.41 KB)
📄
dblink.3
(6.49 KB)
📄
dblink_build_sql_delete.3
(3.26 KB)
📄
dblink_build_sql_insert.3
(3.85 KB)
📄
dblink_build_sql_update.3
(4.1 KB)
📄
dblink_cancel_query.3
(2.1 KB)
📄
dblink_close.3
(2.7 KB)
📄
dblink_connect.3
(5.66 KB)
📄
dblink_connect_u.3
(2.73 KB)
📄
dblink_disconnect.3
(2.09 KB)
📄
dblink_error_message.3
(1.82 KB)
📄
dblink_exec.3
(3.73 KB)
📄
dblink_fetch.3
(4.15 KB)
📄
dblink_get_connections.3
(1.7 KB)
📄
dblink_get_notify.3
(2.48 KB)
📄
dblink_get_pkey.3
(2.63 KB)
📄
dblink_get_result.3
(4.86 KB)
📄
dblink_is_busy.3
(1.82 KB)
📄
dblink_open.3
(3.21 KB)
📄
dblink_send_query.3
(2.32 KB)
📄
editline.3
(20.41 KB)
📄
el_deletestr.3
(20.41 KB)
📄
el_end.3
(20.41 KB)
📄
el_get.3
(20.41 KB)
📄
el_getc.3
(20.41 KB)
📄
el_gets.3
(20.41 KB)
📄
el_history.3
(20.41 KB)
📄
el_history_end.3
(20.41 KB)
📄
el_history_init.3
(20.41 KB)
📄
el_init.3
(20.41 KB)
📄
el_insertstr.3
(20.41 KB)
📄
el_line.3
(20.41 KB)
📄
el_parse.3
(20.41 KB)
📄
el_push.3
(20.41 KB)
📄
el_reset.3
(20.41 KB)
📄
el_resize.3
(20.41 KB)
📄
el_set.3
(20.41 KB)
📄
el_source.3
(20.41 KB)
📄
el_tok_end.3
(20.41 KB)
📄
el_tok_init.3
(20.41 KB)
📄
el_tok_line.3
(20.41 KB)
📄
el_tok_reset.3
(20.41 KB)
📄
el_tok_str.3
(20.41 KB)
📄
ffi.3
(850 B)
📄
ffi_call.3
(2.28 KB)
📄
ffi_prep_cif.3
(1.13 KB)
📄
ffi_prep_cif_var.3
(1.29 KB)
📄
jemalloc.3
(71.09 KB)
📄
libexslt.3
(6.37 KB)
📄
libxml.3
(1.59 KB)
📄
libxslt.3
(816 B)
📄
zlib.3
(4.37 KB)
Editing: dblink_connect.3
'\" t .\" Title: dblink_connect .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> .\" Date: 2018 .\" Manual: PostgreSQL 9.6.9 Documentation .\" Source: PostgreSQL 9.6.9 .\" Language: English .\" .TH "DBLINK_CONNECT" "3" "2018" "PostgreSQL 9.6.9" "PostgreSQL 9.6.9 Documentation" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dblink_connect \- opens a persistent connection to a remote database .SH "SYNOPSIS" .sp .nf dblink_connect(text connstr) returns text dblink_connect(text connname, text connstr) returns text .fi .SH "DESCRIPTION" .PP \fBdblink_connect()\fR establishes a connection to a remote PostgreSQL database\&. The server and database to be contacted are identified through a standard libpq connection string\&. Optionally, a name can be assigned to the connection\&. Multiple named connections can be open at once, but only one unnamed connection is permitted at a time\&. The connection will persist until closed or until the database session is ended\&. .PP The connection string may also be the name of an existing foreign server\&. It is recommended to use the foreign\-data wrapper dblink_fdw when defining the foreign server\&. See the example below, as well as CREATE SERVER (\fBCREATE_SERVER\fR(7)) and CREATE USER MAPPING (\fBCREATE_USER_MAPPING\fR(7))\&. .SH "ARGUMENTS" .PP \fIconnname\fR .RS 4 The name to use for this connection; if omitted, an unnamed connection is opened, replacing any existing unnamed connection\&. .RE .PP \fIconnstr\fR .RS 4 libpq\-style connection info string, for example hostaddr=127\&.0\&.0\&.1 port=5432 dbname=mydb user=postgres password=mypasswd options=\-csearch_path=\&. For details see Section 32.1.1, \(lqConnection Strings\(rq, in the documentation\&. Alternatively, the name of a foreign server\&. .RE .SH "RETURN VALUE" .PP Returns status, which is always OK (since any error causes the function to throw an error instead of returning)\&. .SH "NOTES" .PP If untrusted users have access to a database that has not adopted a secure schema usage pattern, begin each session by removing publicly\-writable schemas from \fIsearch_path\fR\&. One could, for example, add options=\-csearch_path= to \fIconnstr\fR\&. This consideration is not specific to dblink; it applies to every interface for executing arbitrary SQL commands\&. .PP Only superusers may use \fBdblink_connect\fR to create non\-password\-authenticated connections\&. If non\-superusers need this capability, use \fBdblink_connect_u\fR instead\&. .PP It is unwise to choose connection names that contain equal signs, as this opens a risk of confusion with connection info strings in other dblink functions\&. .SH "EXAMPLES" .sp .if n \{\ .RS 4 .\} .nf SELECT dblink_connect(\*(Aqdbname=postgres options=\-csearch_path=\*(Aq); dblink_connect \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- OK (1 row) SELECT dblink_connect(\*(Aqmyconn\*(Aq, \*(Aqdbname=postgres options=\-csearch_path=\*(Aq); dblink_connect \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- OK (1 row) \-\- FOREIGN DATA WRAPPER functionality \-\- Note: local connection must require password authentication for this to work properly \-\- Otherwise, you will receive the following error from dblink_connect(): \-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\- ERROR: password is required \-\- DETAIL: Non\-superuser cannot connect if the server does not request a password\&. \-\- HINT: Target server\*(Aqs authentication method must be changed\&. CREATE SERVER fdtest FOREIGN DATA WRAPPER dblink_fdw OPTIONS (hostaddr \*(Aq127\&.0\&.0\&.1\*(Aq, dbname \*(Aqcontrib_regression\*(Aq); CREATE USER regress_dblink_user WITH PASSWORD \*(Aqsecret\*(Aq; CREATE USER MAPPING FOR regress_dblink_user SERVER fdtest OPTIONS (user \*(Aqregress_dblink_user\*(Aq, password \*(Aqsecret\*(Aq); GRANT USAGE ON FOREIGN SERVER fdtest TO regress_dblink_user; GRANT SELECT ON TABLE foo TO regress_dblink_user; \eset ORIGINAL_USER :USER \ec \- regress_dblink_user SELECT dblink_connect(\*(Aqmyconn\*(Aq, \*(Aqfdtest\*(Aq); dblink_connect \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- OK (1 row) SELECT * FROM dblink(\*(Aqmyconn\*(Aq,\*(AqSELECT * FROM foo\*(Aq) AS t(a int, b text, c text[]); a | b | c \-\-\-\-+\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- 0 | a | {a0,b0,c0} 1 | b | {a1,b1,c1} 2 | c | {a2,b2,c2} 3 | d | {a3,b3,c3} 4 | e | {a4,b4,c4} 5 | f | {a5,b5,c5} 6 | g | {a6,b6,c6} 7 | h | {a7,b7,c7} 8 | i | {a8,b8,c8} 9 | j | {a9,b9,c9} 10 | k | {a10,b10,c10} (11 rows) \ec \- :ORIGINAL_USER REVOKE USAGE ON FOREIGN SERVER fdtest FROM regress_dblink_user; REVOKE SELECT ON TABLE foo FROM regress_dblink_user; DROP USER MAPPING FOR regress_dblink_user SERVER fdtest; DROP USER regress_dblink_user; DROP SERVER fdtest; .fi .if n \{\ .RE .\}
Upload File
Create Folder