pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boboc Cristi <bobocc@yahoo.com>
To: Michael Lewis <mlewis@entrata.com>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Cc: pgsql-general-owner@lists.postgresql.org <pgsql-general-owner@lists.postgresql.org>
Subject: Re: Debugging features needed
Date: Fri, 5 Nov 2021 17:07:44 +0000 (UTC)
Message-ID: <1008215115.908996.1636132064538@mail.yahoo.com> (raw)
In-Reply-To: <CAM+6J94=6_FiqE=8GJQiN-0g3EM-1OaKve5S5MRu8RTugLpXjg@mail.gmail.com>
References: <1395901381.802146.1636111701121.ref@mail.yahoo.com>
	<1395901381.802146.1636111701121@mail.yahoo.com>
	<412962.1636120304@sss.pgh.pa.us>
	<CAHOFxGrWa4UCA6ox4Ly8bj1+pBE03srA7NQ9TbdHwSuTX+9BKQ@mail.gmail.com>
	<CAM+6J94=6_FiqE=8GJQiN-0g3EM-1OaKve5S5MRu8RTugLpXjg@mail.gmail.com>

    You are right, it is too much work to do. For the moment application_name will suffice!

Best regards, Cristi Boboc 

    On Friday, November 5, 2021, 06:15:53 PM GMT+2, Vijaykumar Jain <vijaykumarjain.github@gmail.com> wrote:  
 
 

On Fri, Nov 5, 2021, 7:46 PM Michael Lewis <mlewis@entrata.com> wrote:

For my purposes, app name isn't long enough so we put a comment at the start of every SQL that has a unique ID generated in the application. This ensures that we can tell one connection apart from another even when both are coming from the same feature/action (applicationName is set to this) even using connection pooling. Before, we had different requests reusing the same pid of course and if they happened to have the same appName, we didn't know it was a new process on app side.


While researching options,  I did see crunchy proxy using annotations to split read/write. But I was not sure if any of these options fit well with multiple toolings , drivers etc. 
https://github.com/CrunchyData/crunchy-proxy/blob/master/docs/crunchy-proxy-user-guide.asciidoc#anno...

The other option washttps://github.com/wgliang/pgproxy

or writing your custom plug-in for envoyproxy filter for postgresql 
https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/other_protocols/postgres
So basically it was adding one more layer in between the already connection pooling layers via pgbouncer.The biggest concern is when we use ssl, these session params cannot be read unless we terminate ssl at the proxy, and then decode,  so I gave up :)


  

view thread (8+ messages)

Message-ID: <1008215115.908996.1636132064538@mail.yahoo.com>
Permalink:  ../1008215115.908996.1636132064538@mail.yahoo.com/
Also on:    postgresql.org/message-id/1008215115.908996.1636132064538@mail.yahoo.com

 · 

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: bobocc@yahoo.com, mlewis@entrata.com, vijaykumarjain.github@gmail.com, tgl@sss.pgh.pa.us, pgsql-general-owner@lists.postgresql.org
  Subject: Re: Debugging features needed
  In-Reply-To: <1008215115.908996.1636132064538@mail.yahoo.com>
  References: <1395901381.802146.1636111701121.ref@mail.yahoo.com> <1395901381.802146.1636111701121@mail.yahoo.com> <412962.1636120304@sss.pgh.pa.us> <CAHOFxGrWa4UCA6ox4Ly8bj1+pBE03srA7NQ9TbdHwSuTX+9BKQ@mail.gmail.com> <CAM+6J94=6_FiqE=8GJQiN-0g3EM-1OaKve5S5MRu8RTugLpXjg@mail.gmail.com> <1008215115.908996.1636132064538@mail.yahoo.com>

* 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