pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: client waits for end of update operation and server proc is idle
Date: Mon, 26 Apr 2021 08:04:55 +0200
Message-ID: <YIZYBzsR4LRXdLXK@c720-r368166.fritz.box> (raw)
In-Reply-To: <YIZR4LA8hMg/IYLV@c720-r368166.fritz.box>
References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box>
	<0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at>
	<YIKUEg8Eo0DchREa@c720-r368166.fritz.box>
	<YIVYich/4L12jk3a@c720-r368166.fritz.box>
	<YIZR4LA8hMg/IYLV@c720-r368166.fritz.box>

El día lunes, abril 26, 2021 a las 07:38:40a. m. +0200, Matthias Apitz escribió:

> Having solved this issue, one last question: Is there any good way for a
> C-written or ESQL/C-written client to get the local port number or even
> the PID of the PostgreSQL server process on the other end of the
> connection for logging/tracing purpose?

Ah, I found it as

int PQbackendPID(const PGconn *conn);

One should read firt the fine documentatio befor asking stupid
questions: https://www.postgresql.org/docs/11/libpq-status.html

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
¡Con Cuba no te metas!  «»  Don't mess with Cuba!  «»  Leg Dich nicht mit Kuba an!
http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/





view thread (14+ messages)

Message-ID: <YIZYBzsR4LRXdLXK@c720-r368166.fritz.box>
Permalink:  ../YIZYBzsR4LRXdLXK@c720-r368166.fritz.box/
Also on:    postgresql.org/message-id/YIZYBzsR4LRXdLXK@c720-r368166.fritz.box

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de
  Subject: Re: client waits for end of update operation and server proc is idle
  In-Reply-To: <YIZYBzsR4LRXdLXK@c720-r368166.fritz.box>
  References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box> <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> <YIKUEg8Eo0DchREa@c720-r368166.fritz.box> <YIVYich/4L12jk3a@c720-r368166.fritz.box> <YIZR4LA8hMg/IYLV@c720-r368166.fritz.box> <YIZYBzsR4LRXdLXK@c720-r368166.fritz.box>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox