Re: how to get the connected session pointer ( Archive * AH) - Mailing list pgsql-general

From Luca Ferrari
Subject Re: how to get the connected session pointer ( Archive * AH)
Date
Msg-id CAKoxK+48tcRqP7vN5fY3-NLroTN3Pu5kDvtiau3q8BLjrr11qw@mail.gmail.com
Whole thread Raw
In response to how to get the connected session pointer ( Archive * AH)  (AI Rumman <rummandba@gmail.com>)
Responses Re: how to get the connected session pointer ( Archive * AH)  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
On Tue, Oct 22, 2013 at 1:32 AM, AI Rumman <rummandba@gmail.com> wrote:
> Hi,
>
> Is there a way in Postgresql C function to get the connected session pointer
> ( Archive * AH)
> and use it for further execution?

If I read pg_archiver.c correctly, the AH pointer is used only during
the archiving and is not "globally" stored anywhere, and therefore I
suspect the answer is NO (at least unless you modify the archiver).
What is the aim of having such pointer?

Luca


pgsql-general by date:

Previous
From: Amit Langote
Date:
Subject: A client and server encoding question
Next
From: Rémi Cura
Date:
Subject: Re: Count of records in a row