Exforsys

Online Training

Provide the Difference

This is a discussion on Provide the Difference within the MySQL forums, part of the Database category; I want to know whether there is any difference in OID and CTID in PostgreSQL. If so what is it. ...


Go Back   Exforsys > Database > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2006, 01:59 AM
Senior Member
 
Join Date: Apr 2006
Posts: 145
Rahulbatra is on a distinguished road
Smile Provide the Difference

I want to know whether there is any difference in OID and CTID in PostgreSQL. If so what is it. If someone could provide example it would be great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2007, 04:15 AM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
CTIDs are used to identify specific physical rows with block and offset values. They are used by index entries to point to physical rows. Every row that is created in PostgreSQL gets an OID.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2007, 06:27 AM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
I want to know whether OID and CTIDs are unique for each row and also how many byte integers are assigned for OID and CTID.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2007, 06:44 AM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
Each row gets a unique a OID when a table is created WITH OIDS. OIDs are automatically assigned unique 4-byte integers that are unique across the entire installation. CTIDs change after rows are modified or reloaded.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 06-15-2004 07:00 AM
Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software Jeroen Scheerder Tech FAQ 0 06-05-2004 07:00 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software Jeroen Scheerder Tech FAQ 0 05-01-2004 07:00 PM
Smalltalk FAQ (v.1.0) Vikas Malik Tech FAQ 0 04-17-2004 08:27 AM


All times are GMT -4. The time now is 12:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.