Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mixOX-0005pa-VD for pgsql-general@arkaria.postgresql.org; Fri, 05 Nov 2021 11:28:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mixOW-0000mx-U8 for pgsql-general@arkaria.postgresql.org; Fri, 05 Nov 2021 11:28:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mixOW-0000lD-GD for pgsql-general@lists.postgresql.org; Fri, 05 Nov 2021 11:28:28 +0000 Received: from sonic315-54.consmr.mail.gq1.yahoo.com ([98.137.65.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mixOT-00060R-92 for pgsql-general@lists.postgresql.org; Fri, 05 Nov 2021 11:28:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636111702; bh=Yavc1i+chkQzFa8qGYrXyVoamZBopMBj5f+1iN3DSiU=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject:Reply-To; b=BDu5JTAuqoMlXWUalk1nAFrxWvSDm1k2mLAQH7OV+Y03XuBX79UsroBOgBGhpXjAS4v9jVXNxOwHoRgxULlqkT1F0OXFY5JidUq2OzBkfCu4If01tsnpRK/LQ3EFMwThwL97b9HjJ1S/2QKtGRTQQoSxuNdjFPmTIURPhngCl6tqJqx+Zpi1gx0Swd9G0ea5oRiIvyTgUZzoH1G/6WHUtZg+JsuX6EebXa1XIrEVgUjLM2ipk9e5/IsXdb4RnkxDuPKzK7FKM7cA4rZuFua/bXu44fsMDLV/dS0VM92cE19ZwtarQOxX7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jIrPyOfStHRRxfUwHFPbkM.J0r1xPY80c8qvWE62.dan1g tSyOAV1cc8C8vELQ4g8fP8FS1HIJmpBD6CccGjJVlHMG1xI_NtJOy.zqWFyuz9e6RWr9M9xKrvbO X1gb_ZJO5DJqqPeAMc5gv.df9Nu34pbcGGL1iF1Y4wfg0go54vezf1CP8XZABCfc180BwTxU7pK7 .XnGD0xFz4K.bmNXF0BZLF_P7M.rSWYtHxMNlKzll6i1NKNGoWbhZx8Q61oArk7Q0wYAdehcXHW3 afJvhpCR0AMcSFbFAds3faG_7WGqU01zW1BA9j420WaogvAMPMtlyIgsDqpSrzkBxWPmfD.A.qB6 l.wrIrGOptM5lL5y9Vu1kPfaUhNEGW7sDkFBeEQvxmJbclmms.iPt2ONmjdUiPkJnUFPMv5m1973 lSRFe.zyqUhcpwE5GuvmLMkGb9jeyo9zeEIpmxfxSlvqq7QzLsMAz89cwmRpKfNGjOacX6tWG.x1 RNAqId.xUhdz9OeUXHYKFGNnOnXX5ZVC8Nxe.ZPHMWoDtnX9ZU6YQzdCAhlWPzN6iJw5FKW7AL5L i812lyXgIn57.K42Nat10ZqU6KtBGWQE6mWDHrN2z7.jYkOJWNmUVVSzOtzZ36ddAJwdj8QtYyoG VDPSQ56V8JSq3WYCiCze53H6NvID55uPdPGEtKaBxQ_Qkg.DQvFkXhACXtyzf X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Fri, 5 Nov 2021 11:28:22 +0000 Date: Fri, 5 Nov 2021 11:28:21 +0000 (UTC) From: Boboc Cristi Reply-To: Boboc Cristi To: "pgsql-general@lists.postgresql.org" Cc: "pgsql-general-owner@lists.postgresql.org" Message-ID: <1395901381.802146.1636111701121@mail.yahoo.com> Subject: Debugging features needed MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_802145_1260846849.1636111701119" References: <1395901381.802146.1636111701121.ref@mail.yahoo.com> X-Mailer: WebService/1.1.19266 YMailNorrin Content-Length: 4281 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_802145_1260846849.1636111701119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! =C2=A0 =C2=A0 I need a feature that would me allow to debug "live" the work= of an application together with a PostgreSQL database. I think that if I would be able to define a session variable that is visibl= e in pg_stat_activity (or in other system view, table or function) I would = be more than happy. Well, I have described what I see as a partial solution to my problem, the = problem being: how to track a specific set of actions at database level of = a given application user in the context of session pooling (so the user act= ivity can jump from one session to another of the same pool). If I would be able to set a "value" to a custom variable, then the app woul= d simply need to set the value at each session usage, but I definitely unde= rstand that other mechanisms might help solving the problem (but I do not k= now any of these). I think that I can implement a logging mechanism at database level instead = (and I have some ideas about how to do that), but logging search is not qui= te live debugging. Any help would be highly appreciated, thank you kindly. Best regards, Cristi Boboc Best regards, Cristi Boboc ------=_Part_802145_1260846849.1636111701119 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello!
  &nbs= p; I need a feature that would me allow to debug "live" the work of an appl= ication together with a PostgreSQL database.

=
I think that if I would be able to define a session = variable that is visible in pg_stat_activity (or in other system view, tabl= e or function) I would be more than happy.

=
Well, I have described what I see as a partial solution to= my problem, the problem being: how to track a specific set of actions at d= atabase level of a given application user in the context of session pooling= (so the user activity can jump from one session to another of the same poo= l).

If I would be able to = set a "value" to a custom variable, then the app would simply need to set t= he value at each session usage, but I definitely understand that other mech= anisms might help solving the problem (but I do not know any of these).

I think that I can implement = a logging mechanism at database level instead (and I have some ideas about = how to do that), but logging search is not quite live debugging.

Any help would be highly appreciated= , thank you kindly.

Best regards, Cristi Boboc
=
=


Best regards, Cristi Boboc
------=_Part_802145_1260846849.1636111701119--