Re: POSTGRE CRASH AND CURRVAL PROBLEM HELP!

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: POSTGRE CRASH AND CURRVAL PROBLEM HELP!
Дата
Msg-id 871wdzrxc7.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на POSTGRE CRASH AND CURRVAL PROBLEM HELP!  ("David Azevedo" <davixz@gmail.com>)
Список pgsql-general
"David Azevedo" <davixz@gmail.com> writes:

> 2007-08-16 13:49:43||/labrsangioro/forms/recepcao_temp.php||ERROR:  could
> not open relation 1663/1491040/1555634: Invalid argument

> 2007-08-16 14:12:36||/labrsangioro/forms/recepcao_temp.php||PANIC:  could
> not open file "pg_xlog/000000010000000000000046" (log file 0, segment 70):
> Invalid argument

These look pretty bad. Can you confirm whether these files are really missing?

Some people have reported strange errors not entirely unlike these being
caused by virus firewalls which prevent Postgres from doing file operations it
expects to be able to do. Can you disable any virus firewalls on this machine,
at least temporarily or as far as local file operations are affected?

> i always used nextval to insert autoincrement values, and currval to get the
> inserted value.
>
> after i backup one of the databases and restore ( just it, backup and
> restore in the same server ) the curval function stoped to work and i get
> the following message:

Is this the same server as is getting the errors above? If so then following
an error it will try to reconnect to the server which will be a new connection
and not have the sequence value set.

Are there any other errors in your logs? If there were any other errors
earlier it might have prevented your nextval() from getting called.

How did you back it up and restore it? Are you referring to pg_dump/pg_restore
or some system backup?

Can you do \ds on the working and non-working database and compare the
results?


--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

В списке pgsql-general по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: POSTGRE CRASH AND CURRVAL PROBLEM HELP!
Следующее
От: "Mike Rylander"
Дата:
Сообщение: Re: tsearch2: plainto_tsquery() with OR?