Re: [PATCH] Do not use StdRdOptions in Access Methods
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Nikolay Shaplov <dhyan@nataraj.su>
Cc: pgsql-hackers@lists.postgresql.org, Amit Langote <amitlangote09@gmail.com>, Alvaro Herrera <alvherre@2ndquadrant.com>, Dent John <denty@qqdd.eu>, Thomas Munro <thomas.munro@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, "Iwata, Aya" <iwata.aya@jp.fujitsu.com>, Dmitry Dolgov <9erthalion6@gmail.com>
Date: 2019-11-20T07:44:18Z
Lists: pgsql-hackers
Attachments
- do-not-use-StdRdOptions-in-AM_4.diff (text/x-diff) patch
On Fri, Nov 15, 2019 at 10:34:55AM +0900, Michael Paquier wrote: > It seems to me that if the plan is to have one option structure for > each index AM, which has actually the advantage to reduce the bloat of > each relcache entry currently relying on StdRdOptions, then we could > have those extra assertion checks in the same patch, because the new > macros are introduced. I have looked at this patch, and did not like much having the calculations of the page free space around, so I have moved that into each AM's dedicated header. > There is rd_rel->relam. You can for example refer to pgstatindex.c > which has AM-related checks to make sure that the correct index AM is > being used. We can do something similar for GIN and BRIN on top of the rest, so updated the patch with that. Nikolay, I would be fine to commit this patch as-is. Thanks for your patience on this stuff. -- Michael
Commits
-
Refactor reloption handling for index AMs in-core
- 4cb658af7002 13.0 landed
-
Cleanup code in reloptions.h regarding reloption handling
- 50d22de9325f 13.0 landed
-
Refactor code building relation options
- 3534fa223328 13.0 landed
-
Add some assertions to view reloption macros
- 396773762425 13.0 cited