pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
OIDs
4+ messages / 4 participants
[nested] [flat]

* OIDs
@ 2003-05-27 14:01 Jodi Kanter <jkanter@virginia.edu>
  2003-05-27 17:09 ` Re: OIDs Bruno Wolff III <bruno@wolff.to>
  0 siblings, 1 reply; 4+ messages in thread

From: Jodi Kanter @ 2003-05-27 14:01 UTC (permalink / raw)
  To: pgsql-admin

I believe that I read something about OIDs being reintroduced in version 
7.3.2. Can someone tell me why? Does this mean that the "without OIDs" 
feature is not an option in the newer version?
Thanks
Jodi
-- 

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>

 

 

 

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

* Re: OIDs
  2003-05-27 14:01 OIDs Jodi Kanter <jkanter@virginia.edu>
@ 2003-05-27 17:09 ` Bruno Wolff III <bruno@wolff.to>
  0 siblings, 0 replies; 4+ messages in thread

From: Bruno Wolff III @ 2003-05-27 17:09 UTC (permalink / raw)
  To: Jodi Kanter <jkanter@virginia.edu>; +Cc: pgsql-admin

On Tue, May 27, 2003 at 10:01:03 -0400,
  Jodi Kanter <jkanter@virginia.edu> wrote:
> I believe that I read something about OIDs being reintroduced in version 
> 7.3.2. Can someone tell me why? Does this mean that the "without OIDs" 
> feature is not an option in the newer version?

At most the default and/or pg_dump output were changed. The option wasn't
removed.



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

* oids
@ 2003-09-02 10:28 Mark <mark@vestnesis.lv>
  2003-09-02 18:07 ` Re: oids Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Mark @ 2003-09-02 10:28 UTC (permalink / raw)
  To: pgsql-admin

Hello, All!

Is there other meanings of oids than unique row identifier?

Can I make two identical tables in the same database (even with oids)?
Something like this
	CREATE TABLE table2 AS (SELECT oid,* FROM table1);

Or oids must be unique in whole database?

Mark



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

* Re: oids
  2003-09-02 10:28 oids Mark <mark@vestnesis.lv>
@ 2003-09-02 18:07 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2003-09-02 18:07 UTC (permalink / raw)
  To: Mark <mark@vestnesis.lv>; +Cc: pgsql-admin

Mark writes:

> Is there other meanings of oids than unique row identifier?

In normal user tables, OIDs don't mean anything unless you interpret
something into them.  Nowadays, the advice is usually not to use OIDs, but
instead use user-defined sequences.

> Can I make two identical tables in the same database (even with oids)?

Yes.

> Something like this
> 	CREATE TABLE table2 AS (SELECT oid,* FROM table1);

This won't work (aside from the syntax error caused by the extra
parentheses), because CREATE TABLE will automatically add an oid column in
table2, which will interfere with the one from table1.

-- 
Peter Eisentraut   peter_e@gmx.net




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


end of thread, other threads:[~2003-09-02 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-27 14:01 OIDs Jodi Kanter <jkanter@virginia.edu>
2003-05-27 17:09 ` Bruno Wolff III <bruno@wolff.to>
2003-09-02 10:28 oids Mark <mark@vestnesis.lv>
2003-09-02 18:07 ` Re: oids Peter Eisentraut <peter_e@gmx.net>

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