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 1fnRnT-00081Y-2V for pgsql-docs@arkaria.postgresql.org; Wed, 08 Aug 2018 16:58:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fnRnO-0004vB-Lk for pgsql-docs@arkaria.postgresql.org; Wed, 08 Aug 2018 16:58:50 +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 1fnRnO-0004v4-A2 for pgsql-docs@lists.postgresql.org; Wed, 08 Aug 2018 16:58:50 +0000 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fnRnJ-0008HP-K5 for pgsql-docs@lists.postgresql.org; Wed, 08 Aug 2018 16:58:49 +0000 Received: by mail-qt0-x235.google.com with SMTP id b15-v6so3177004qtp.11 for ; Wed, 08 Aug 2018 09:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Vm/TXgtgEKcahfcrtETQMGevOLsWLqNvoRs9LIMZ9+Y=; b=a0FHYSQPfEZ7P27qawBeEX6vNe4KPHG0GavIo3urZFhE7eBGdsSm+7KvSOdGJjmIoN NR88TLhf7r58PbwKzpg3eT9+q3jnUbuNzgYsIRsEZ1BO36cnloL7sUW+j+BKVRLVc9Ni XmzvXqj38bZ0DMilJOnbv5CUlKzRwgoMQHVCclwO23xa0b2SNxD2Ar/aHShlt1x6nOzP 6M3lQ0fSc2a4T+bGHVo5fYJA/bI/53IELRek6SK5OW1Va0SZUD4Z7O9sMByvIOZ+et3Z P+rcgx4ZtqG2IwpeLzGYaiAlYG6inJ4y9fV4P8qmbtkah8lfMPyF9ZYGIYTiHZ5eZ3wf Hpbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Vm/TXgtgEKcahfcrtETQMGevOLsWLqNvoRs9LIMZ9+Y=; b=mf8iIgrtTsPP7UH6a0ncMDCdbrcbziu4qFGLbDn3WWfod9LfqPGS8/Sj9SnsUpPkRZ H2wxydR1ChHTRBM4MhnmFJPk+WpNelmKQfgZ5ddIZeXpAHuf2O2YEst8mKQB0sQXaVTU n1w49fuyReqCOzh9r07z/OXy4pGjHLGttqrT4w+roJrvWQupoUErW+esksPDArY0LprV tR9NI8jGigAfM8zL7S5IsRBTkDTGndFFBIlBWL0hPVuu5/gipoj6uLk0x+RXwm1VRt7x RM00dc0t0eGJhqhv/NDe/fQrIfb6EL0CiKnr3jnOe9f7F/Z4080uHqb/DuDWssBQHBft h/+g== X-Gm-Message-State: AOUpUlEIc5HBb+ENNCwK8k8jx39oVr99b0SI/pA8atEzRZoGOIGo6QIU anJysTxAOI4gw6DJ3DOUx7XIYNM9+UMG0W5YENw= X-Google-Smtp-Source: AA+uWPz2vDfF7G5Xl+8zDmo48UWcHNkGTJRTdozyW8UaLaICCx02EyvDzYDIG2sFIv2lcittc8pOZE8TTlGUXfHtKio= X-Received: by 2002:a0c:f7d2:: with SMTP id f18-v6mr3237100qvo.175.1533747524602; Wed, 08 Aug 2018 09:58:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:c60c:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 09:58:43 -0700 (PDT) In-Reply-To: <28231.1533743837@sss.pgh.pa.us> References: <153371978486.1298.2091761143788088262@wrigleys.postgresql.org> <28231.1533743837@sss.pgh.pa.us> From: "David G. Johnston" Date: Wed, 8 Aug 2018 09:58:43 -0700 Message-ID: Subject: Re: dblink_error_message return value To: Tom Lane Cc: realyota@gmail.com, Joe Conway , pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000006111650572ef6c60" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000006111650572ef6c60 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 8, 2018 at 8:57 AM, Tom Lane wrote: > > 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? > I would suggest that while rewording might be useful a more beneficial improvement would be separating the commands into "Sync/ASync" and link back into the corresponding libpq documentation sections which dblink provides direct SQL layer access to (and which the docs seem to have been written under the assumption the reader was knowledgeable of that API). It does abstract away some of the material in the libpq docs but I think it would be a reasonable halfway measure in lieu of spending time enhancing the mostly obsolete dblink extension documentation. David J. --0000000000006111650572ef6c60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Au= g 8, 2018 at 8:57 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Secondly
> dblink_is_busy must be first called to make dblink_error_message retur= ns an
> error message. (Tested on 9.6.9)

Meh.=C2=A0 I see what you're getting at here, I think, but that seems l= ike a
completely wrong/misleading statement of the issue.=C2=A0 Joe, can you thin= k of
better phraseology?

I would suggest that = while rewording might be useful a more beneficial improvement would be sepa= rating the commands into "Sync/ASync" and link back into the corr= esponding libpq documentation sections which dblink provides direct SQL lay= er access to (and which the docs seem to have been written under the assump= tion the reader was knowledgeable of that API).=C2=A0 It does abstract away= some of the material in the libpq docs but I think it would be a reasonabl= e halfway measure in lieu of spending time enhancing the mostly obsolete db= link extension documentation.

David J.

--0000000000006111650572ef6c60--