On Tue, Jul 12, 2022 at 5:55 PM Joseph D Wagner <j...@josephdwagner.info> wrote: > Before I try to answer that, I need to know how the scheduler works.
As I understand the term used, there is no scheduler inside Postgres for user connections -- they're handled by the OS kernel. That's probably why it'd be a difficult project to be smart about memory -- step one might be to invent a scheduler. (The autovacuum launcher and checkpointer, etc have their own logic about when to do things, but while running they too are just OS processes scheduled by the kernel.) -- John Naylor EDB: http://www.enterprisedb.com