X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3AFFED1B56B for ; Fri, 15 Aug 2003 07:09:58 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 93314-04 for ; Fri, 15 Aug 2003 04:09:48 -0300 (ADT) Received: from houston.familyhealth.com.au (unknown [203.59.48.253]) by svr1.postgresql.org (Postfix) with ESMTP id 18C4AD1B539 for ; Fri, 15 Aug 2003 04:09:39 -0300 (ADT) Received: from mars (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9/8.12.9) with SMTP id h7F77TLt057902; Fri, 15 Aug 2003 15:07:37 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <262601c362fd$4ee2f310$2800a8c0@mars> From: "Christopher Kings-Lynne" To: "Stephan Szabo" Cc: "Gavin Sherry" , "Bruce Momjian" , "Peter Childs" , "PostgreSQL-development" References: <20030814233926.D8240-100000@megazone.bigpanda.com> Subject: Re: [GENERAL] 7.4Beta Date: Fri, 15 Aug 2003 15:17:21 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/795 X-Sequence-Number: 42452 > > 1. Add the FK to the table BEFORE COPYing data > > 2. Use the old update blah set reltriggers = 0 trick > > 3. restore the data > > 4. Undo step 2 > > The problem with that is that I think the reltriggers=0 trick only works > if you're superuser, I thought that's why the trigger disabling became > optional. A set that affected only atac would probably be reasonable in > the dump (and presumably easy to do). It'd also carry over to future > cases where we separate some check constraints (for examples ones > that refer directly or indirectly to the same table in a subselect). Well yes, this would be a super-user only ability. Are you worried about people restoring dumps as non-superuser? Chris