| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Приложение E. Дополнительно поставляемые модули | След. |
E.9. dblink
- Содержание
- dblink_connect -- открывает постоянное подключение к удалённой базе данных
- dblink_connect_u -- открывает постоянное подключение к удалённой базе данных, небезопасно
- dblink_disconnect -- закрывает постоянное подключение к удалённой базе данных
- dblink -- выполняет запрос в удалённой базе данных
- dblink_exec -- выполняет команду в удалённой базе данных
- dblink_open -- открывает курсор в удалённой базе данных
- dblink_fetch -- возвращает строки из открытого курсора в удалённой базе данных
- dblink_close -- закрывает курсор в текущей базе данных
- dblink_get_connections -- возвращает имена всех открытых именованных подключений dblink
- dblink_error_message -- выдаёт сообщение последней ошибки для именованного подключения
- dblink_send_query -- передаёт асинхронный запрос в удалённую базу данных
- dblink_is_busy -- проверяет, не выполняется ли через подключение асинхронный запрос
- dblink_get_notify -- выдаёт асинхронные уведомления подключения
- dblink_get_result -- получает результат асинхронного запроса
- dblink_cancel_query -- отменяет любой активный запрос в заданном подключении
- dblink_get_pkey -- возвращает позиции и имена полей первичного ключа отношения
- dblink_build_sql_insert -- формирует оператор INSERT из локального кортежа, заменяя значения полей первичного ключа переданными альтернативными значениями
- dblink_build_sql_delete -- формирует оператор DELETE со значениями, передаваемыми для полей первичного ключа
- dblink_build_sql_update -- формирует оператор UPDATE из локального кортежа, заменяя значения первичного ключа переданными альтернативными значениями
- dblink_connect -- открывает постоянное подключение к удалённой базе данных
Модуль dblink обеспечивает подключения к другим базам данных PostgreSQL из сеанса базы данных.
См. также описание модуля postgres_fdw, который предоставляет примерно ту же функциональность, но через более современную и стандартизированную инфраструктуру.
| Пред. | Начало | След. |
| cube | Уровень выше | dblink_connect |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Appendix F. Additional Supplied Modules | Next |
F.9. dblink
- Table of Contents
- dblink_connect -- opens a persistent connection to a remote database
- dblink_connect_u -- opens a persistent connection to a remote database, insecurely
- dblink_disconnect -- closes a persistent connection to a remote database
- dblink -- executes a query in a remote database
- dblink_exec -- executes a command in a remote database
- dblink_open -- opens a cursor in a remote database
- dblink_fetch -- returns rows from an open cursor in a remote database
- dblink_close -- closes a cursor in a remote database
- dblink_get_connections -- returns the names of all open named dblink connections
- dblink_error_message -- gets last error message on the named connection
- dblink_send_query -- sends an async query to a remote database
- dblink_is_busy -- checks if connection is busy with an async query
- dblink_get_notify -- retrieve async notifications on a connection
- dblink_get_result -- gets an async query result
- dblink_cancel_query -- cancels any active query on the named connection
- dblink_get_pkey -- returns the positions and field names of a relation's primary key fields
- dblink_build_sql_insert -- builds an INSERT statement using a local tuple, replacing the primary key field values with alternative supplied values
- dblink_build_sql_delete -- builds a DELETE statement using supplied values for primary key field values
- dblink_build_sql_update -- builds an UPDATE statement using a local tuple, replacing the primary key field values with alternative supplied values
- dblink_connect -- opens a persistent connection to a remote database
dblink is a module that supports connections to other PostgreSQL databases from within a database session.
See also postgres_fdw, which provides roughly the same functionality using a more modern and standards-compliant infrastructure.