Re: Use %u to print user mapping's umid and userid - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: Use %u to print user mapping's umid and userid
Date
Msg-id e5bd055c-4735-7ed9-fa82-d4db5ea64156@lab.ntt.co.jp
Whole thread Raw
In response to Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Responses Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
On 2016/05/11 16:49, Ashutosh Bapat wrote:
> The patch is calculating user mapping when it's readily available
> through RelOptInfo::fdw_private. That incurs a catalog lookup
> unnecessarily. Instead, can we add new function makeOid, oidVal on the
> lines of makeInteger and intVal to store and retrieve an OID resp. and
> also corresponding print function? It might be helpful in future.

That might be an idea, but is the overhead in that re-calculation so large?

Best regards,
Etsuro Fujita





pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Use %u to print user mapping's umid and userid
Next
From: Ashutosh Bapat
Date:
Subject: Re: Use %u to print user mapping's umid and userid