Re: Размер

From: "Denis A(dot) Egorov" <denis(dot)egorov(at)virtonconsultants(dot)com>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-ru-general <pgsql-ru-general(at)postgresql(dot)org>
Subject: Re: Размер
Date: 2005-05-26 08:49:34
Message-ID: 20050526084933.GD6070@virtonconsultants.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ru-general

Здравствуйте, Oleg Bartunov!

Да, сори.

Написал, отправил, а потом уже только подумал что мало проблему
описал. Верчером дело было...

Да, проблема воспроизводится, так сказать элементарно.

Вот версия postgresql:

PostgreSQL 7.4.8 on i386-portbld-freebsd4.10, compiled by GCC 2.95.4

Это о входящих данных:

head -c 100 big.sql
SELECT id FROM test WHERE id NOT IN ( '10', '100', '1000', '10000', '10001', '10002

wc sql_big.sql
1 14091 122660 sql_big.sql

psql -U test test < big.sql
сервер неожиданно прервал соединение
Скорее всего это означает что сервер завершил работу со сбоем
до или в течение обслуживания запроса.
подсоединение к серверу было потеряно

в логах:

/kernel: pid 26672 (postgres), uid 70: exited on signal 10 (core dumped)
postgres[26669]: [211-1] WARNING: terminating connection because of crash of another server process
postgres[26669]: [211-2] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, beca use another server

postgres[26669]: [211-3] process exited abnormally and possibly corrupted shared memory.
postgres[26669]: [211-4] HINT: In a moment you should be able to reconnect to the database and repeat your command.
postgres[26639]: [210-1] WARNING: terminating connection because of crash of another server processa
postgres[26639]: [210-2] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, beca use another server

и так по ходу для всех процесов postgres, и в самом конце

postgres[26677]: [213-1] FATAL: the database system is starting up
postgres[26687]: [213-1] FATAL: the database system is starting up

Есть у меня другая машина, с другим postgresq:

PostgreSQL 7.4.7 on i386-portbld-freebsd4.11, compiled by GCC 2.95.4

так вот при выполнении этого же самого sql выдаёт вот это:

ERROR: expression too complex
DETAIL: Nesting depth exceeds maximum expression depth 10000.
HINT: Increase the configuration parameter "max_expr_depth".

но, всё остаётся работать...

On Thu, May 26, 2005 at 01:15:54AM +0400, you wrote:

-> Денис,
->
-> требуется больше информации. Версия, запрос, сообщения,
-> и что такое "ребутнулась" ?
-> Проблема воспроизводится или как ?
-> Если да, то готовь тестовый пример.
->
->
-> Олег
-> On Wed, 25 May 2005, Denis A. Egorov wrote:
->
-> >Доброго времени суток!
-> >
-> >Вот сегодня столкнулся с проблемой, есть таблица(большая), мне нужно
-> >сделать вот такой вот select:
-> >
-> >selec id from test whwre id not in ( очень много),
-> >
-> >выполнив его, ребутнулась вся база, запрос не выполнился, в общем пипец.
-> >Хотя тоже самое на mysql выполняется без проблем.
-> >
-> >Вот я и думаю может быть где-то ограничения какие либо стоят?
-> >
-> >
-> >С уважением.
-> >
->
-> Regards,
-> Oleg
-> _____________________________________________________________
-> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
-> Sternberg Astronomical Institute, Moscow University (Russia)
-> Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
-> phone: +007(095)939-16-83, +007(095)939-23-83

С уважением.
--
Denis A. Egorov

In response to

Responses

Browse pgsql-ru-general by date

  From Date Subject
Next Message Ivan Yu. Zolotukhin 2005-05-26 09:02:26 Case insensitivity in Postgres
Previous Message Oleg Bartunov 2005-05-25 21:15:54 Re: Размер SQL-запроса.