Maybe I'm doing something wrong, but let's assume following scenario
I create a client connection in main thread and make an initial large query. Then I create a pool of workers to fetch the rest of the RLS classes for each of the results in the initial query. Trying to query within the worker now throws an unauthenticated error. Solution so far is to create a new connection within every worker, but that seems unreliable after a while of running.
Maybe I'm doing something wrong, but let's assume following scenario
I create a client connection in main thread and make an initial large query. Then I create a pool of workers to fetch the rest of the RLS classes for each of the results in the initial query. Trying to query within the worker now throws an unauthenticated error. Solution so far is to create a new connection within every worker, but that seems unreliable after a while of running.
Any thoughts?