Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6365FB5DC99 for ; Tue, 12 Jul 2011 10:18:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 40097-04 for ; Tue, 12 Jul 2011 13:18:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id ADF8BB5DC47 for ; Tue, 12 Jul 2011 10:18:15 -0300 (ADT) Received: by wwe6 with SMTP id 6so4413617wwe.19 for ; Tue, 12 Jul 2011 06:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=JK23BLqxuBw4p8xsuFEnms9xte3Ki4SWv3XxssI1wic=; b=O5nxlL2HqWlHI8Xcf1Dl1GLSUwvjY5u2j4MpoVGL3IXJzf6PT/nG4jbD8P6l6SSHt1 zYPxHNznrHbndAifnsCv9GlNP8TdZSAl1GfhBqPddWCu+UJFjEvbI55E7q+20tgxSXws EExt1I1nj0Xn8/fXP7Ipgn6xXdSfovKD9B5Qk= Received: by 10.227.2.144 with SMTP id 16mr5579338wbj.9.1310476695272; Tue, 12 Jul 2011 06:18:15 -0700 (PDT) Received: from gnash (host11-163-dynamic.44-79-r.retail.telecomitalia.it [79.44.163.11]) by mx.google.com with ESMTPS id em16sm5635559wbb.50.2011.07.12.06.18.13 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 06:18:14 -0700 (PDT) Date: Tue, 12 Jul 2011 15:18:11 +0200 From: Sandro Santilli To: pgsql-bugs@postgresql.org Cc: rkottman@mpi-bremen.de, PostGIS Development Discussion , Sebastian =?iso-8859-1?Q?Gro=DF?= Subject: Ambiguos OPERATOR items in pg_restore manifest file (was: [postgis-devel] utils/new_postgis_restore.pl) Message-ID: <20110712131811.GH13590@gnash> Mail-Followup-To: pgsql-bugs@postgresql.org, rkottman@mpi-bremen.de, PostGIS Development Discussion , Sebastian =?iso-8859-1?Q?Gro=DF?= References: <4E1B7609.2080008@mpi-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E1B7609.2080008@mpi-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.889 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201107/100 X-Sequence-Number: 30712 Trying to exclude items from dumps of postgis-enabled databases we use pg_restore -l output and strip what we think belong to PostGIS. In doing so, Renzo found that for OPERATOR there are not enough informations to unambiguosly find it being part of PostGIS (see included mail snippet). Do you think this could be improved on the pg_restore side ? TIA. --strk; () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html On Tue, Jul 12, 2011 at 12:15:37AM +0200, Renzo Kottmann wrote: > 2. Even more severe your exclusion list also excludes some postgis > specific operators like e.g. > OPERATOR && > or in the grep version > OPERATOR \(\w\+\) && > > Unfortunately, this also deletes operators from the ltree contrib which > I have in my dump. The problem is that in the manifest file the > operators of ltree and postgis are only distinguishable by oid. > Therefore, I included oids of the postgis operator in the pattern: > > 6836195 OPERATOR \(\w\+\) && > > This is of course unfortunately dump specific. I do not know if it is a > bug or feature of the pg_restore manifest file, but if it contained the > left- and right argument type of each operator, they would be easily > uniquely identifiable without the need to know the oid.