On Mon, Jul 21, 2025 at 7:49 PM Andres Freund <and...@anarazel.de> wrote: > That is not to say you can't have callbacks or such, it just doesn't make > sense for those callbacks to be at the level of tableam. If you want to make > vacuumparallel support parallel table vacuuming for multiple table AMs (I'm > somewhat doubtful that's a good idea), you could do that by having a > vacuumparallel.c specific callback struct.
I'm not doubtful that this is a good idea. There are a number of tableams around these days that are "heap except whatever", where (I suspect) the size of "whatever" ranges from quite small to moderately large. I imagine that such efforts end up duplicating a lot of heapam code and probably always will; but if we can avoid increasing that amount, I think it's a good idea. -- Robert Haas EDB: http://www.enterprisedb.com