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

simple_prompt() hangs because SIGINT handler was overridden #356

Open
za-arthur opened this issue Jun 7, 2023 · 0 comments
Open

simple_prompt() hangs because SIGINT handler was overridden #356

za-arthur opened this issue Jun 7, 2023 · 0 comments
Labels

Comments

@za-arthur
Copy link
Collaborator

pg_repack overrides SIGINT handler:

pqsignal(SIGINT, handle_sigint);

Because of this it isn't possible to interrupt password prompt with CTRL+C. You need to interrupt it you need to enter some or empty password.
If you do the following steps then pg_repack crashes:

  • Run pg_repack
  • Press CTRL+C when pg_repack waits for a password
  • Enter any password
pg_repack -t repack_table -d postgres -U repack_user
Password:
FATAL: interrupted
[1]    36015 IOT instruction (core dumped)  pg_repack -t repack_table -d postgres -U repack_user
@za-arthur za-arthur added the bug label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant