Re: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table
Дата
Msg-id CAApHDvpSSQNjarGxenouJSBgtNjv+SmDVpjxu3R5T6tLRq1q3Q@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table  (PG Bug reporting form <noreply@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18111: Query hangs when trying to INSERT empty string into NOT NULL table
Следующее
От: Jay
Дата:
Сообщение: Re: BUG #18108: server process was terminated by signal 11: Segmentation fault