| From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
|---|---|
| To: | maciej(dot)klimkowicz(at)oxla(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table |
| Date: | 2023-09-15 10:00:19 |
| Message-ID: | CAApHDvpSSQNjarGxenouJSBgtNjv+SmDVpjxu3R5T6tLRq1q3Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Fri, 15 Sept 2023 at 21:48, PG Bug reporting form
<noreply(at)postgresql(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jay | 2023-09-15 10:11:18 | Re: BUG #18108: server process was terminated by signal 11: Segmentation fault |
| Previous Message | PG Bug reporting form | 2023-09-15 09:00:31 | BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table |