Re: [HACKERS] Improve the performance of the standby server when dropping tables on the primary server

2017-08-03 Thread Tokuda, Takashi
Hi, > * The previous coding allowed for a fast path to access the last > unowned relation, which this patch removes. It seems a good idea to > cache the last unowned relation, or if not explain why the comment > that says why it worked that way is no longer true. > > * We should only create the

[HACKERS] Improve the performance of the standby server when dropping tables on the primary server

2017-07-31 Thread Tokuda, Takashi
Hi, The attached patch changes data structure storing unowned SMgrRelation objects from list structure to hash structure. The reason why I change it is that list structure very slowly removes a node. And list structure takes longer time to remove a node than hash structure. The problem was