Search Postgresql Archives

Question in dblink

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

 



I would like the code below to accept the returned value from t2.
How do I do it?
Thanks
Danny

=======================================================

  err := dblink_connect('C',cname);
  begin
	execute dblink('C','SELECT t2()');
  exception
	when others then null;
  end;
  err := dblink_disconnect('C');

======================================================
CREATE OR REPLACE FUNCTION t2()  RETURNS integer
AS
$$
DECLARE
  i integer;
BEGIN
  execute 'insert into x values(12)';
  return 67;
END;  
$$ LANGUAGE 'plpgsql' VOLATILE;
======================================================



Danny Abraham
BMC Software
CTM&D Business Unit
972-52-4286-513
danny_abraham@xxxxxxx


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


[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