Re: regarding oid(object id) - Mailing list pgsql-novice

From Vibhor Kumar
Subject Re: regarding oid(object id)
Date
Msg-id 3061F750-3CA3-476D-99FF-0B02999A5747@enterprisedb.com
Whole thread Raw
In response to regarding oid(object id)  (siva kiran balijepalli <b.sivakiran@gmail.com>)
List pgsql-novice
On Mar 10, 2011, at 12:31 PM, siva kiran balijepalli wrote:

> Hi
> i am novice postgr sql user.
>
> I have created a table named customer in my data base.
> also i have inserter some of the rows into my table.
> when i try to execute this command to select object id's (oid) i am getting following error.
>
> select oid from customer;
> error: column oid doesn't exist

For old/Existing Table without OID, you can't get OID.

> note: even though i have changed the
> default_with_oids = on in postgreconf file,i am not getting the oid's.
>
Setting Above parameter will make sure that new tables will get created with OIDs.
i.e you don't have to mention WITH OID in CREATE TABLE Syntax.


Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
vibhor.kumar@enterprisedb.com
Blog:http://vibhork.blogspot.com


pgsql-novice by date:

Previous
From: Chetan Suttraway
Date:
Subject: Re: regarding oid(object id)
Next
From: Vibhor Kumar
Date:
Subject: Re: difference between functions and stored procedure