From: Sandro Santilli <strk@keybit.net>
To: pgsql-bugs@postgresql.org
Cc: rkottman@mpi-bremen.de
Cc: PostGIS Development Discussion <postgis-devel@postgis.refractions.net>
Cc: Sebastian Groß <sgross@mpi-bremen.de>
Subject: Ambiguos OPERATOR items in pg_restore manifest file (was: [postgis-devel] utils/new_postgis_restore.pl)
Date: Tue, 12 Jul 2011 15:18:11 +0200
Message-ID: <20110712131811.GH13590@gnash> (raw)
In-Reply-To: <4E1B7609.2080008@mpi-bremen.de>
References: <4E1B7609.2080008@mpi-bremen.de>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: strk@keybit.net, rkottman@mpi-bremen.de, postgis-devel@postgis.refractions.net, sgross@mpi-bremen.de
Subject: Re: Ambiguos OPERATOR items in pg_restore manifest file (was: [postgis-devel] utils/new_postgis_restore.pl)
In-Reply-To: <20110712131811.GH13590@gnash>
References: <4E1B7609.2080008@mpi-bremen.de> <20110712131811.GH13590@gnash>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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