2002-09-02 10:13:31 +04:00
|
|
|
-- Uncomment the following 9 lines to use original DEPRECATED functions
|
|
|
|
--CREATE OR REPLACE FUNCTION dblink (text,text) RETURNS setof int
|
|
|
|
-- AS 'MODULE_PATHNAME','dblink' LANGUAGE 'c'
|
|
|
|
-- WITH (isstrict);
|
|
|
|
--CREATE OR REPLACE FUNCTION dblink_tok (int,int) RETURNS text
|
|
|
|
-- AS 'MODULE_PATHNAME','dblink_tok' LANGUAGE 'c'
|
|
|
|
-- WITH (isstrict);
|
|
|
|
--CREATE OR REPLACE FUNCTION dblink_last_oid (int) RETURNS oid
|
|
|
|
-- AS 'MODULE_PATHNAME','dblink_last_oid' LANGUAGE 'c'
|
|
|
|
-- WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_connect (text) RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_connect' LANGUAGE 'c'
|
2002-04-24 06:28:28 +04:00
|
|
|
WITH (isstrict);
|
2001-06-14 20:49:03 +04:00
|
|
|
|
2002-09-02 10:13:31 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_disconnect () RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_disconnect' LANGUAGE 'c'
|
2002-04-24 06:28:28 +04:00
|
|
|
WITH (isstrict);
|
|
|
|
|
2002-09-02 10:13:31 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_open (text,text) RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_open' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
2002-04-24 06:28:28 +04:00
|
|
|
|
2002-09-02 10:13:31 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_fetch (text,int) RETURNS setof record
|
|
|
|
AS 'MODULE_PATHNAME','dblink_fetch' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_close (text) RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_close' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
-- Note: if this is a first time install of dblink, the following DROP
|
|
|
|
-- FUNCTION line is expected to fail.
|
|
|
|
-- Comment out the following 4 lines if the DEPRECATED functions are used.
|
|
|
|
DROP FUNCTION dblink (text,text);
|
|
|
|
CREATE OR REPLACE FUNCTION dblink (text,text) RETURNS setof record
|
|
|
|
AS 'MODULE_PATHNAME','dblink_record' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink (text) RETURNS setof record
|
|
|
|
AS 'MODULE_PATHNAME','dblink_record' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_exec (text,text) RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_exec' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_exec (text) RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_exec' LANGUAGE 'c'
|
2002-04-24 06:28:28 +04:00
|
|
|
WITH (isstrict);
|
|
|
|
|
2002-09-02 10:13:31 +04:00
|
|
|
CREATE TYPE dblink_pkey_results AS (position int4, colname text);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_get_pkey (text) RETURNS setof dblink_pkey_results
|
|
|
|
AS 'MODULE_PATHNAME','dblink_get_pkey' LANGUAGE 'c'
|
2002-04-24 06:28:28 +04:00
|
|
|
WITH (isstrict);
|
|
|
|
|
2002-05-28 01:59:12 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_build_sql_insert (text, int2vector, int2, _text, _text) RETURNS text
|
2002-04-24 06:28:28 +04:00
|
|
|
AS 'MODULE_PATHNAME','dblink_build_sql_insert' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
2002-05-28 01:59:12 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_build_sql_delete (text, int2vector, int2, _text) RETURNS text
|
2002-04-24 06:28:28 +04:00
|
|
|
AS 'MODULE_PATHNAME','dblink_build_sql_delete' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
2002-05-28 01:59:12 +04:00
|
|
|
CREATE OR REPLACE FUNCTION dblink_build_sql_update (text, int2vector, int2, _text, _text) RETURNS text
|
2002-04-24 06:28:28 +04:00
|
|
|
AS 'MODULE_PATHNAME','dblink_build_sql_update' LANGUAGE 'c'
|
|
|
|
WITH (isstrict);
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION dblink_current_query () RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','dblink_current_query' LANGUAGE 'c';
|