Re: ERROR: could not open relation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: could not open relation
Дата
Msg-id 20200.1121357278@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ERROR: could not open relation  ("Thomas F. O'Connell" <tfo@sitening.com>)
Ответы Re: ERROR: could not open relation  ("Thomas F. O'Connell" <tfo@sitening.com>)
Список pgsql-general
"Thomas F. O'Connell" <tfo@sitening.com> writes:
> Could this be related to temp tables?

Possibly, given that the table doesn't seem to be there anymore.

> Does bgwriter operate on temp tables, and could there exist an edge
> condition in which bgwriter might have scheduled a write to disk for
> a file corresponding to a temp table that was removed by sudden
> termination of the session in which the temp table existed such that
> the file was removed?

Do you have some evidence that the bgwriter was what was reporting the
error?  You didn't say that before.

The bgwriter only works on dirty shared buffers, so the only way this
could be happening is if a page of a temp table had gotten loaded into
a shared buffer, which isn't supposed to happen really.  Is it possible
that you had some backend deliberately trying to read a temp table
created by another backend?  (You don't have to assume that the
interloper tried to modify the table; a mere SELECT could have created
the dirty-buffer condition due to hint-bit update.  You do have to
assume that the interloper was superuser, though, else permissions
would have stopped him from accessing someone else's temp table.)

            regards, tom lane

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

Предыдущее
От: "Reid Thompson"
Дата:
Сообщение: Re: DB/clog corruption
Следующее
От: Richard_D_Levine@raytheon.com
Дата:
Сообщение: Re: Standalone Parser for PL/pgSQL