public inbox for [email protected]  
help / color / mirror / Atom feed
From: mahendrakar s <[email protected]>
To: pgsql-novice <[email protected]>
Subject: debugging libpq backend code
Date: Sat, 5 Nov 2022 23:40:38 +0530
Message-ID: <CABkiuWrTvNTega8aCb3Dak0wbTTySb_SQ=xTvdwwoO2Gu0qXyg@mail.gmail.com> (raw)

Hello All,

I'm trying to debug libpq backend code (files: auth.c, auth-sasl.c in
directory src/backend/libpq).
I followed: Developer FAQ - PostgreSQL wiki and attached postgres
process ( because connection is still in progress and I don't see
backend process yet when I try to connect through psql). I could set
the break-points but these are not hit while it must. I think I should
not be attaching postmaster parent process instead attach the backend
process but how? how do I get the backend process id? Please note that
ps -ef does not show backend process and also I can't run `select
pg_backend_pid()` as connection is not authorized yet.

Can you suggest how to debug this backend code? especially files:
auth.c, auth-sasl.c in directory src/backend/libpq).

Appreciate your help.

Thanks,
Mahendrakar.





view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: debugging libpq backend code
  In-Reply-To: <CABkiuWrTvNTega8aCb3Dak0wbTTySb_SQ=xTvdwwoO2Gu0qXyg@mail.gmail.com>

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

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