dbTalk Databases Forums  

[BUGS] Problem when truncate table and get the OID from PQftable

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Problem when truncate table and get the OID from PQftable in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rodrigo Moreno
 
Posts: n/a

Default [BUGS] Problem when truncate table and get the OID from PQftable - 04-26-2004 , 01:03 PM






Hi

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.

The problem is only solved if i drop the table and re-creating again.

Regards
Rodrigo Moreno


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] Problem when truncate table and get the OID from PQftable - 04-27-2004 , 11:52 PM






"Rodrigo Moreno" <rodrigo.miguel (AT) terra (DOT) com.br> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.