Hi, > I would propose not to associate temporary relations with local buffers
The whole point of why local buffers exist is to place the buffers of temp tables into MemoryContexts so that these tables will not fight for the locks for shared buffers with the rest of the system. If we start treating them as regular tables this will cause a severe performance degradation. I doubt that such a patch will make it. I sort of suspect that you are working on a very specific extension and/or feature for PG fork. Any chance you could give us more details about the case? -- Best regards, Aleksander Alekseev