Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Adam Brusselback <adambrusselback(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000
Date: 2017-11-01 22:03:54
Message-ID: 20171101220354.GB22239@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 01, 2017 at 04:11:07PM -0400, Adam Brusselback wrote:
> I have something going on, and i'm not sure what is causing it. I
> recently upgraded our development environment to PG10, and the error
> in the subject appeared with one of my analytical functions.

What relation is that ? I guess it's harder to know since it's within a
function, but could you add NOTICE for all the relations you're outputting ?

Something like
ts=# SELECT 'alarms'::regclass::oid;
oid | 19575

Also, if you have log_statement=all (and maybe log_destination=stderr,csvlog),
can you send the log fragment for the line with error_severity='ERROR' ?
https://www.postgresql.org/docs/current/static/runtime-config-logging.html#runtime-config-logging-csvlog

Justin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Brusselback 2017-11-01 23:02:33 Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000
Previous Message Adam Brusselback 2017-11-01 20:11:07 Possible bug: could not open relation with OID [numbers] SQL State: XX000