<div dir="ltr"><div><div><div>I think i figured it out<br></div><br><div>Except for the error, i also get these notices:<br>No larg, CREATE OPERATOR FAMILY btree_geometry_ops USING btree;<br></div><div>ALTER OPERATOR FAMILY public.btree_geometry_ops USING btree OWNER TO wbloos;<br>
</div><div><br>line 192 orf teh perl code is :<br>my $sigHR = "OPERATOR " . $name .' ('.$larg.', '.$rarg.')';<br><br></div>And $larg has not been initialized.<br></div><div><br></div><div>
Normaly, there doesn't seem to be a ALTER OPERATOR FAMILY ... OWNER TO line in the dump, but because i created the postgis definitions under my own user, there was.<br></div><div>The script doesn't seem to cope with that. It skips OPERATOR CLASS, but not OPERATOR FAMILY. Perl has to recognize the objects in the dump by text string comparison, that's what goes wrong here.<br>
<br>It's only that one line "ALTER OPERATOR FAMILY public.btree_geometry_ops USING btree OWNER TO wbloos;", the error is just printed 4 times.<br></div><div>I checked with this command to find the source of the error:<br>
pg_restore -L <dumpfile>.lst dumpfile|sed -n '<line nr>'p<br><br></div><div>So i conclude that it's nothing to worry about.<br></div><div>Hope that helps any other users that encounter this, maybe the script can be enhanced to cope with it.<br>
</div><div><br></div><div>Cheers,<br><br></div><div>WBL<br></div><br></div><br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 6:26 PM, Willy-Bas Loos <span dir="ltr"><<a href="mailto:willybas@gmail.com" target="_blank">willybas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br><a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a> gives me the error (4 times in 1 restore):<br>
Use of uninitialized value $larg in concatenation (.) or string at ./<a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a> line 192, <INPUT> line 16432.<br>
<br></div>This is on version POSTGIS="2.0.1 r9979" GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.2, released 2012/10/08" LIBXML="2.7.8" RASTER<br clear="all">

</div><div><div><div>It must be something new in my database or some illness of the dump i made, because it didn't happen when i restored it last may, and i just reproduced it on that same machine.<br><br></div><div>
Can anyone tell me what the error means?<br>
<br></div><div>Thanks,<br><br></div><div>WBL<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br>"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth<br>

</div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth<br>
</div>