00001 /* 00002 * dblink.h 00003 * 00004 * Functions returning results from a remote database 00005 * 00006 * Joe Conway <[email protected]> 00007 * And contributors: 00008 * Darko Prenosil <[email protected]> 00009 * Shridhar Daithankar <[email protected]> 00010 * 00011 * contrib/dblink/dblink.h 00012 * Copyright (c) 2001-2013, PostgreSQL Global Development Group 00013 * ALL RIGHTS RESERVED; 00014 * 00015 * Permission to use, copy, modify, and distribute this software and its 00016 * documentation for any purpose, without fee, and without a written agreement 00017 * is hereby granted, provided that the above copyright notice and this 00018 * paragraph and the following two paragraphs appear in all copies. 00019 * 00020 * IN NO EVENT SHALL THE AUTHOR OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR 00021 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING 00022 * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS 00023 * DOCUMENTATION, EVEN IF THE AUTHOR OR DISTRIBUTORS HAVE BEEN ADVISED OF THE 00024 * POSSIBILITY OF SUCH DAMAGE. 00025 * 00026 * THE AUTHOR AND DISTRIBUTORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, 00027 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00028 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 00029 * ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAS NO OBLIGATIONS TO 00030 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00031 * 00032 */ 00033 00034 #ifndef DBLINK_H 00035 #define DBLINK_H 00036 00037 #include "fmgr.h" 00038 00039 /* 00040 * External declarations 00041 */ 00042 extern Datum dblink_connect(PG_FUNCTION_ARGS); 00043 extern Datum dblink_disconnect(PG_FUNCTION_ARGS); 00044 extern Datum dblink_open(PG_FUNCTION_ARGS); 00045 extern Datum dblink_close(PG_FUNCTION_ARGS); 00046 extern Datum dblink_fetch(PG_FUNCTION_ARGS); 00047 extern Datum dblink_record(PG_FUNCTION_ARGS); 00048 extern Datum dblink_send_query(PG_FUNCTION_ARGS); 00049 extern Datum dblink_get_result(PG_FUNCTION_ARGS); 00050 extern Datum dblink_get_connections(PG_FUNCTION_ARGS); 00051 extern Datum dblink_is_busy(PG_FUNCTION_ARGS); 00052 extern Datum dblink_cancel_query(PG_FUNCTION_ARGS); 00053 extern Datum dblink_error_message(PG_FUNCTION_ARGS); 00054 extern Datum dblink_exec(PG_FUNCTION_ARGS); 00055 extern Datum dblink_get_pkey(PG_FUNCTION_ARGS); 00056 extern Datum dblink_build_sql_insert(PG_FUNCTION_ARGS); 00057 extern Datum dblink_build_sql_delete(PG_FUNCTION_ARGS); 00058 extern Datum dblink_build_sql_update(PG_FUNCTION_ARGS); 00059 extern Datum dblink_current_query(PG_FUNCTION_ARGS); 00060 extern Datum dblink_get_notify(PG_FUNCTION_ARGS); 00061 extern Datum dblink_fdw_validator(PG_FUNCTION_ARGS); 00062 00063 #endif /* DBLINK_H */