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_build_sql_insert.3
'\" t .\" Title: dblink_build_sql_insert .\" 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_BUILD_SQL_INSERT" "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_build_sql_insert \- builds an INSERT statement using a local tuple, replacing the primary key field values with alternative supplied values .SH "SYNOPSIS" .sp .nf dblink_build_sql_insert(text relname, int2vector primary_key_attnums, integer num_primary_key_atts, text[] src_pk_att_vals_array, text[] tgt_pk_att_vals_array) returns text .fi .SH "DESCRIPTION" .PP \fBdblink_build_sql_insert\fR can be useful in doing selective replication of a local table to a remote database\&. It selects a row from the local table based on primary key, and then builds a SQL \fBINSERT\fR command that will duplicate that row, but with the primary key values replaced by the values in the last argument\&. (To make an exact copy of the row, just specify the same values for the last two arguments\&.) .SH "ARGUMENTS" .PP \fIrelname\fR .RS 4 Name of a local relation, for example foo or myschema\&.mytab\&. Include double quotes if the name is mixed\-case or contains special characters, for example "FooBar"; without quotes, the string will be folded to lower case\&. .RE .PP \fIprimary_key_attnums\fR .RS 4 Attribute numbers (1\-based) of the primary key fields, for example 1 2\&. .RE .PP \fInum_primary_key_atts\fR .RS 4 The number of primary key fields\&. .RE .PP \fIsrc_pk_att_vals_array\fR .RS 4 Values of the primary key fields to be used to look up the local tuple\&. Each field is represented in text form\&. An error is thrown if there is no local row with these primary key values\&. .RE .PP \fItgt_pk_att_vals_array\fR .RS 4 Values of the primary key fields to be placed in the resulting \fBINSERT\fR command\&. Each field is represented in text form\&. .RE .SH "RETURN VALUE" .PP Returns the requested SQL statement as text\&. .SH "NOTES" .PP As of PostgreSQL 9\&.0, the attribute numbers in \fIprimary_key_attnums\fR are interpreted as logical column numbers, corresponding to the column\*(Aqs position in SELECT * FROM relname\&. Previous versions interpreted the numbers as physical column positions\&. There is a difference if any column(s) to the left of the indicated column have been dropped during the lifetime of the table\&. .SH "EXAMPLES" .sp .if n \{\ .RS 4 .\} .nf SELECT dblink_build_sql_insert(\*(Aqfoo\*(Aq, \*(Aq1 2\*(Aq, 2, \*(Aq{"1", "a"}\*(Aq, \*(Aq{"1", "b\*(Aq\*(Aqa"}\*(Aq); dblink_build_sql_insert \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- INSERT INTO foo(f1,f2,f3) VALUES(\*(Aq1\*(Aq,\*(Aqb\*(Aq\*(Aqa\*(Aq,\*(Aq1\*(Aq) (1 row) .fi .if n \{\ .RE .\}
Upload File
Create Folder