Search Postgresql Archives

Re: dblink_get_result issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> (Postgres 8.3.9)

oops, this is actually 8.4.4 on Windows.

-----Original Message-----
From: Marc Mamin 
Sent: Mittwoch, 10. November 2010 18:25
To: 'pgsql-general@xxxxxxxxxxxxxx'
Subject: dblink_get_result issue

Hello,

I'm experimenting with dblink, and have an issue with async. queries
that do not return result sets. 

(Postgres 8.3.9) 

--youll need your own connect string to repeat:

select dblink_connect_u('myconn1', 'hostaddr=127.0.0.1 port=5432
dbname=postgres user=postgres password=x');

select dblink_send_query('myconn1', 'create  temp table bah(s int8);');
select pg_sleep(.3);

SELECT * FROM dblink_get_result('myconn1', true ) as x (t text);

=> 
********** Error **********
remote query result rowtype does not match the specified FROM clause
rowtype
SQL state: 42804

A subsequent call  returns an empty result set, as described here:

http://www.postgresql.org/docs/8.3/interactive/contrib-dblink-get-result
.html



Thanks for any help.

Marc Mamin

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux