Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the need for net.worker_restart() #163

Open
steve-chavez opened this issue Oct 22, 2024 · 3 comments
Open

Remove the need for net.worker_restart() #163

steve-chavez opened this issue Oct 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@steve-chavez
Copy link
Member

Problem

Currently to change the configs such as pg_net.ttl/pg_net.batch_size we need to restart the worker. This generates a failure plus some unnecessary log lines.

Solution

With shared memory, plus a GucStringAssignHook we don't need to restart the worker. Once a user does SET pg_net.batch_size this should change the config on the next worker iteration.

@steve-chavez steve-chavez added the enhancement New feature or request label Oct 22, 2024
@riderx
Copy link

riderx commented Nov 8, 2024

i think i supabase cloud we cannot even call net.worker_restart() so we need to restart the db

@steve-chavez
Copy link
Member Author

Note that that should be solved from v0.12, net.worker_restart is not a security definer function anymore.

@steve-chavez
Copy link
Member Author

ALTER SYSTEM is a problem for pipeline mode as mentioned on #160 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants