Search Postgresql Archives

Re: pg_dump without oids

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



=?ISO-8859-1?Q?St=E9phane_Schildknecht?= <stephane.schildknecht@xxxxxxxxxxxxxxxx> writes:
> pg_dump and pg_dumpall have the -o option that should tell them to
> include oids in dump. I didn't chose this option, and the dump doesn't
> include "WITH OIDS", but the tables are created with oids when restoring
> this dump.

You misunderstand what that option is for: it's for trying to preserve
the exact OID values present in your old installation.  It's not about
adding or removing OID columns.

> Is there a way to prevent creating table with oids ?

No, and I don't think it'd be within pg_dump's charter to editorialize
on table definitions like that.  Instead see ALTER TABLE SET WITHOUT OIDS.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux