|
|
@ -185,13 +185,11 @@ SELECT dblink_disconnect(); |
|
|
|
OK |
|
|
|
OK |
|
|
|
(1 row) |
|
|
|
(1 row) |
|
|
|
|
|
|
|
|
|
|
|
-- should generate "no connection to the server" error |
|
|
|
-- should generate "connection not available" error |
|
|
|
SELECT * |
|
|
|
SELECT * |
|
|
|
FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[]) |
|
|
|
FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[]) |
|
|
|
WHERE t.a > 7; |
|
|
|
WHERE t.a > 7; |
|
|
|
ERROR: sql error |
|
|
|
ERROR: connection not available |
|
|
|
DETAIL: no connection to the server |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- put more data into our slave table, first using arbitrary connection syntax |
|
|
|
-- put more data into our slave table, first using arbitrary connection syntax |
|
|
|
-- but truncate the actual return value so we can use diff to check for success |
|
|
|
-- but truncate the actual return value so we can use diff to check for success |
|
|
|
SELECT substr(dblink_exec('dbname=regression','INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6); |
|
|
|
SELECT substr(dblink_exec('dbname=regression','INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6); |
|
|
|