reorg / pg_repack

Reorganize tables in PostgreSQL databases with minimal locks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple_prompt() hangs because SIGINT handler was overridden

za-arthur opened this issue · comments

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