pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ERROR:  could not open relation with OID 22617039
2+ messages / 2 participants
[nested] [flat]

* ERROR:  could not open relation with OID 22617039
@ 2015-06-16 17:51 Adriano Sperandio <adriano.sperandio@by7.com.br>
  2015-06-17 16:55 ` Re: ERROR: could not open relation with OID 22617039 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Adriano Sperandio @ 2015-06-16 17:51 UTC (permalink / raw)
  To: pgsql-bugs

Hello, I'm experiencing a problem when I run a given query. the error does
not occur when I run the same query again. 

I tried to search the object by OID, but have not found.

My Version:

----------------------------------------------------------------------------
----------------------------

PostgreSQL 9.1.15 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real
(Debian 4.4.5-8) 4.4.5, 64-bit

(1 row)

 

Command:

 

create temporary table qfabs as (select f.*

                        from

                                fabs as f,

                                (select

                                                setor, ramo, comunidade

                                        from

                                                comunidades

                                        where

                                                setor = 177

                                        ) as c

                        where

                                ( (f.ano>  2014) or (f.ano = 2014 and
f.mes>= 6) ) and

                                ( (f.ano<  2015) or (f.ano = 2015 and
f.mes<= 5) ) and

                                ( f.setor = c.setor and f.ramo = c.ramo and
f.comunidade = c.comunidade )

                        )

PostgreSql Error:

        ERROR:  could not open relation with OID 22617039

 

pastcri-dev=> SELECT oid FROM pg_class where oid=22617039;

oid

-----

(0 rows)

 

pastcri-dev=> select relname, relkind from pg_class where relfilenode
=22617039;

relname | relkind

---------+---------

(0 rows)

 

 

Adriano Sperandio

Diretor de Serviços e Projetos

E-mail:  <mailto:adriano.sperandio@by7.com.br> adriano.sperandio@by7.com.br

 <tel:%2B55%2047%203432-9000> +55 47 3432-9000 / 47 92225010
---
Microsoft Certified Professional

Microsoft Certified Technology Specialist

Oracle Database 11g Administrator Certified Associate   

 



 

Attachments:

image001.png (image/png, 42.3K) download view image
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: ERROR: could not open relation with OID 22617039
  2015-06-16 17:51 ERROR:  could not open relation with OID 22617039 Adriano Sperandio <adriano.sperandio@by7.com.br>
@ 2015-06-17 16:55 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-06-17 16:55 UTC (permalink / raw)
  To: Adriano Sperandio <adriano.sperandio@by7.com.br>; +Cc: pgsql-bugs

"Adriano Sperandio" <adriano.sperandio@by7.com.br> writes:
> Hello, I'm experiencing a problem when I run a given query. the error does
> not occur when I run the same query again. 

Hm ... the most obvious theory is that you have a corrupted TOAST pointer
in one of those tables, but I don't see why the failure wouldn't be
reproducible if so.  I wonder if you have got flaky hardware.  Is the
complained-of OID always the same?  Can you get a similar error when
doing just "select * from" one or the other of the input tables?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-06-17 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 17:51 ERROR:  could not open relation with OID 22617039 Adriano Sperandio <adriano.sperandio@by7.com.br>
2015-06-17 16:55 ` Re: ERROR: could not open relation with OID 22617039 Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox