Re: psql not responding to SIGINT upon db reconnection

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Tristan Partin <tristan(at)neon(dot)tech>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers(at)postgresql(dot)org, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
Subject: Re: psql not responding to SIGINT upon db reconnection
Date: 2024-04-03 15:05:44
Message-ID: CAGECzQS7Ng36kiq_3nXXzZkeVU9uSiEHO4DqzNHEG294w-X1sA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 3 Apr 2024 at 16:55, Tristan Partin <tristan(at)neon(dot)tech> wrote:
> Removing from the switch statement causes a warning:
>
> > [1/2] Compiling C object src/bin/psql/psql.p/command.c.o
> > ../src/bin/psql/command.c: In function ‘wait_until_connected’:
> > ../src/bin/psql/command.c:3803:17: warning: enumeration value ‘PGRES_POLLING_ACTIVE’ not handled in switch [-Wswitch]
> > 3803 | switch (PQconnectPoll(conn))
> > | ^~~~~~

Ofcourse... fixed now

Attachment Content-Type Size
v13-0001-Fix-actually-reachable-pg_unreachable-call.patch application/x-patch 1.4 KB
v13-0002-Remove-PGRES_POLLING_ACTIVE-case.patch application/x-patch 1.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tristan Partin 2024-04-03 15:16:58 Re: psql not responding to SIGINT upon db reconnection
Previous Message Bharath Rupireddy 2024-04-03 14:58:04 Re: Introduce XID age and inactive timeout based replication slot invalidation