Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnQpy-0004uX-QB for pgsql-docs@arkaria.postgresql.org; Wed, 08 Aug 2018 15:57:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fnQpw-0000Xh-MT for pgsql-docs@arkaria.postgresql.org; Wed, 08 Aug 2018 15:57:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnQpw-0000XT-DG for pgsql-docs@lists.postgresql.org; Wed, 08 Aug 2018 15:57:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fnQpt-0006vV-PG for pgsql-docs@lists.postgresql.org; Wed, 08 Aug 2018 15:57:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w78FvHgE028232; Wed, 8 Aug 2018 11:57:17 -0400 From: Tom Lane To: realyota@gmail.com cc: Joe Conway , pgsql-docs@lists.postgresql.org Subject: Re: dblink_error_message return value In-reply-to: <153371978486.1298.2091761143788088262@wrigleys.postgresql.org> References: <153371978486.1298.2091761143788088262@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Wed, 08 Aug 2018 09:16:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28230.1533743837.1@sss.pgh.pa.us> Date: Wed, 08 Aug 2018 11:57:17 -0400 Message-ID: <28231.1533743837@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Doc_comments_form?= writes: > The following documentation comment has been logged on the website: > Documentation says: > Return Value > Returns last error message, or an empty string if there has been no error in > this connection. > Which is invalid. > Actually it returns 'OK' string if no error was raised. Good catch! The code's quite clear about it, but the SGML docs need fixed. > Secondly > dblink_is_busy must be first called to make dblink_error_message returns an > error message. (Tested on 9.6.9) Meh. I see what you're getting at here, I think, but that seems like a completely wrong/misleading statement of the issue. Joe, can you think of better phraseology? regards, tom lane