From: Masahiko Sawada <sawada.mshk@gmail.com>
> I think it's better to have index AM (and perhaps table AM) control it
> instead of filtering in XLogInsert(). Because otherwise third-party
> access methods that use LSN like gist indexes cannot write WAL records
> at all when wal_level = none even if they want.
Hm, third-party extensions use RM_GENERIC_ID, so it should probably be allowed in XLogInsert() as well instead of
allowingcontrol in some other way. It's not unnatural that WAL records for in-core AMs are filtered in XLogInsert().
Regards
Takayuki Tsunakawa