diff options
Diffstat (limited to 'contrib/dblink/dblink.c')
-rw-r--r-- | contrib/dblink/dblink.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index b8d0342085d..0812a3b2b56 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -187,7 +187,7 @@ typedef struct remoteConnHashEnt ereport(ERROR, \ (errcode(ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION), \ errmsg("could not establish connection"), \ - errdetail("%s", msg))); \ + errdetail_internal("%s", msg))); \ } \ dblink_security_check(conn, rconn); \ PQsetClientEncoding(conn, GetDatabaseEncodingName()); \ @@ -263,7 +263,7 @@ dblink_connect(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION), errmsg("could not establish connection"), - errdetail("%s", msg))); + errdetail_internal("%s", msg))); } /* check password actually used if not superuser */ @@ -2261,8 +2261,9 @@ dblink_res_error(const char *conname, PGresult *res, const char *dblink_context_ ereport(level, (errcode(sqlstate), - message_primary ? errmsg("%s", message_primary) : errmsg("unknown error"), - message_detail ? errdetail("%s", message_detail) : 0, + message_primary ? errmsg_internal("%s", message_primary) : + errmsg("unknown error"), + message_detail ? errdetail_internal("%s", message_detail) : 0, message_hint ? errhint("%s", message_hint) : 0, message_context ? errcontext("%s", message_context) : 0, errcontext("Error occurred on dblink connection named \"%s\": %s.", |