Re: XTM & parallel search - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: XTM & parallel search
Date
Msg-id CAA4eK1KtfgVZtwu0ttVsxAG+WjYuR913fipk+62PsqN+ETpkBw@mail.gmail.com
Whole thread Raw
In response to XTM & parallel search  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: XTM & parallel search  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
On Fri, Jun 3, 2016 at 1:34 AM, Konstantin Knizhnik <k.knizhnik@postgrespro.ru> wrote:
We have to add three more functions to eXtensible Transaction Manager API (XTM):

    /*
     * Calculate transaction state size. This method is invoked by EstimateTransactionStateSpace to copy transaction
     * state to parallel workers
     */
    size_t      (*GetTransactionStateSize)(void);

    /*
     * Serialize transaction state
     */
    void        (*SerializeTransactionState)(void* ctx);

    /*
     * Deserialize transaction state
     */
    void        (*DeserializeTransactionState)(void* ctx);



In above proposal, are you suggesting to change the existing API's as well, because the parameters of function pointers don't match with exiting API's. I think it is better to consider this along with the overall XTM API.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Rename max_parallel_degree?
Next
From: Konstantin Knizhnik
Date:
Subject: Re: XTM & parallel search