From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | "Sofer, Yuval" <Yuval_Sofer(at)bmc(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org, "Abraham, Danny" <danny_abraham(at)bmc(dot)com> |
Subject: | Re: cannot get error message after dblink_exec execution |
Date: | 2007-08-19 16:50:14 |
Message-ID: | 46C874C6.30603@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Sofer, Yuval wrote:
> last_message := dblink_error_message('dbname=postgres
> user=postgres password=manager') ;
> Am I not using dblink_error_message correctly?
Yes, you are not using dblink_error_message correctly. From the docs:
==================================================================
Name
dblink_error_message -- gets last error message on the named connection
Synopsis
dblink_error_message(text connname) RETURNS text
Inputs
connname
The specific connection name to use.
Outputs
Returns last error message.
Example usage
SELECT dblink_error_message('dtest1');
==================================================================
It requires a named connection, you are trying to use an anonymous one.
HTH,
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2007-08-20 07:59:23 | Re: Yet Another Socket .s.PGSQL.5432 Problem |
Previous Message | giuseppe.derossi | 2007-08-19 15:38:43 | HELP, can't implement e filter |