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 1mizdG-000445-7L for pgsql-general@arkaria.postgresql.org; Fri, 05 Nov 2021 13:51:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mizdF-0005tZ-5V for pgsql-general@arkaria.postgresql.org; Fri, 05 Nov 2021 13:51:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mizdE-0005sm-O7; Fri, 05 Nov 2021 13:51:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mizdC-0000TU-O1; Fri, 05 Nov 2021 13:51:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A5DpiUq412963; Fri, 5 Nov 2021 09:51:45 -0400 From: Tom Lane To: Boboc Cristi cc: "pgsql-general@lists.postgresql.org" , "pgsql-general-owner@lists.postgresql.org" Subject: Re: Debugging features needed In-reply-to: <1395901381.802146.1636111701121@mail.yahoo.com> References: <1395901381.802146.1636111701121.ref@mail.yahoo.com> <1395901381.802146.1636111701121@mail.yahoo.com> Comments: In-reply-to Boboc Cristi message dated "Fri, 05 Nov 2021 11:28:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <412961.1636120304.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 05 Nov 2021 09:51:44 -0400 Message-ID: <412962.1636120304@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Boboc Cristi writes: > =C2=A0 =C2=A0 I need a feature that would me allow to debug "live" the w= ork of an application together with a PostgreSQL database. > I think that if I would be able to define a session variable that is vis= ible in pg_stat_activity (or in other system view, table or function) I wo= uld be more than happy. application_name is meant for that ... regards, tom lane