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

From: Adam Brusselback <adambrusselback(at)gmail(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(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 23:30:04
Message-ID: CAMjNa7eLii9EcuPERJoGGvUw7q+MDHd9B4SCNpXkf14662e+Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alright I figured it out.

The OID does not match any of the temp tables, so not sure what's up there.

I have the function RETURN QUERY,
and then I drop all my temp tables.

If I don't drop the tmp_base table at the end of the function, it will
work just fine. If I keep the drop at the end in there, it'll blow up
every time.

This seriously seems like a bug to me.

In response to

Responses

Browse pgsql-general by date

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