From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | "David Azevedo" <davixz(at)gmail(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: POSTGRE CRASH AND CURRVAL PROBLEM HELP! |
Date: | 2007-08-19 22:08:56 |
Message-ID: | 871wdzrxc7.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"David Azevedo" <davixz(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Rylander | 2007-08-20 01:05:17 | Re: tsearch2: plainto_tsquery() with OR? |
Previous Message | Scott Marlowe | 2007-08-19 21:45:27 | Re: POSTGRE CRASH AND CURRVAL PROBLEM HELP! |