Re: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table - Mailing list pgsql-bugs

From David Rowley
Subject Re: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table
Date
Msg-id CAApHDvpSSQNjarGxenouJSBgtNjv+SmDVpjxu3R5T6tLRq1q3Q@mail.gmail.com
Whole thread Raw
In response to BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Fri, 15 Sept 2023 at 21:48, PG Bug reporting form
<noreply@postgresql.org> wrote:
> 1.CREATE TABLE texttable (col1 TEXT NOT NULL);
> 2.INSERT INTO texttable (col1) VALUES ('');
>
> Query hangs indefinitely.
> For NULL column it works as expected.

Does it still hang on a freshly created database?

Do you see any ungranted locks in pg_locks for the process ID of the
waiting backend?

select * from pg_locks where pid=NNN and not granted;

You can obtain the PID from the backend before you execute the query
that's going to hang with:

select pg_backend_pid();

Do you see any rows pg_event_trigger?:

select * from pg_event_trigger;

David



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table
Next
From: Jay
Date:
Subject: Re: BUG #18108: server process was terminated by signal 11: Segmentation fault