| 1 |
/* contrib/postgres_fdw/postgres_fdw--1.1--1.2.sql */ |
| 2 |
|
| 3 |
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
| 4 |
\echo Use "ALTER EXTENSION postgres_fdw UPDATE TO '1.2'" to load this file. \quit |
| 5 |
|
| 6 |
/* First we have to remove it from the extension */ |
| 7 |
ALTER EXTENSION postgres_fdw DROP FUNCTION postgres_fdw_get_connections (); |
| 8 |
|
| 9 |
/* Then we can drop it */ |
| 10 |
DROP FUNCTION postgres_fdw_get_connections (); |
| 11 |
|
| 12 |
CREATE FUNCTION postgres_fdw_get_connections ( |
| 13 |
IN check_conn boolean DEFAULT false, OUT server_name text, |
| 14 |
OUT user_name text, OUT valid boolean, OUT used_in_xact boolean, |
| 15 |
OUT closed boolean, OUT remote_backend_pid int4) |
| 16 |
RETURNS SETOF record |
| 17 |
AS 'MODULE_PATHNAME', 'postgres_fdw_get_connections_1_2' |
| 18 |
LANGUAGE C STRICT PARALLEL RESTRICTED; |