Re: Problem when truncate table and get the OID from PQftable - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Problem when truncate table and get the OID from PQftable
Date
Msg-id 23189.1083127500@sss.pgh.pa.us
Whole thread Raw
In response to Problem when truncate table and get the OID from PQftable  ("Rodrigo Moreno" <rodrigo.miguel@terra.com.br>)
List pgsql-bugs
"Rodrigo Moreno" <rodrigo.miguel@terra.com.br> writes:
> After truncate the table, the oid retuned by PQftable/libpq returns the old
> value, and i'm not able to find it in pg_class, because the value of
> pg_class.relfilenode was changed after the truncate.

Why are you matching it against relfilenode?  It is the OID.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: make check regression "test stats" failed
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] INITDB-error - end-of-copy marker error