cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

jobs: use builtin to synthesize pending session job rows in vtable

Open dt opened this issue 4 months ago • 3 comments

This adds a builtin to enumerate jobs pending creation in the current session. It then adds a UNION with a call to this builtin, rather than directly accessing the session in the Go code, to the body of the crdb_internal.jobs vtable, bringing the vtable closer to being just a pure query that can be replaced by a delegate or view.

Additionally, deprecated columns in the vtable, which were always null, are removed.

Release note: none. Epic: none.a

dt avatar Jun 17 '25 19:06 dt