Re: [HACKERS] pg_dump and ALTER TABLE / ADD FOREIGN KEY

2002-06-24 Thread Rod Taylor
On 2002.06.23 01:23 Christopher Kings-Lynne wrote: > > Some have expressed that this could be quite slow for large > databases, > > and want a type of: > > > > SET CONSTRAINTS UNCHECKED; > > > > However, others don't believe constraints other than foreign keys > > should go unchecked. > > Well, a

Re: [HACKERS] pg_dump and ALTER TABLE / ADD FOREIGN KEY

2002-06-24 Thread Stephan Szabo
On Sat, 22 Jun 2002, Matthew T. O'Connor wrote: > > However, others don't believe constraints other than foreign keys > > should go unchecked. > > > > That said, is this functionality wanted outside of pg_dump / > > pg_restore? > > pg_dump should reload a database as it was stored in the previou

Re: [HACKERS] pg_dump and ALTER TABLE / ADD FOREIGN KEY

2002-06-24 Thread Christopher Kings-Lynne
> Some have expressed that this could be quite slow for large databases, > and want a type of: > > SET CONSTRAINTS UNCHECKED; > > However, others don't believe constraints other than foreign keys > should go unchecked. Well, at the moment remember taht all that other SET CONSTRAINTS commands only

Re: [HACKERS] pg_dump and ALTER TABLE / ADD FOREIGN KEY

2002-06-22 Thread Matthew T. O'Connor
> However, others don't believe constraints other than foreign keys > should go unchecked. > > That said, is this functionality wanted outside of pg_dump / > pg_restore? pg_dump should reload a database as it was stored in the previous database. If your old data is not clean, pg_dump / restore

[HACKERS] pg_dump and ALTER TABLE / ADD FOREIGN KEY

2002-06-22 Thread Rod Taylor
With the pg_depend / pg_constraint implementation foreign keys are applied to dumps via alter table / add foreign key (retains inter table dependencies). Some have expressed that this could be quite slow for large databases, and want a type of: SET CONSTRAINTS UNCHECKED; However, others don't b