<div dir="ltr"><div><div><div>Hi strk,<br></div>As my system crashed and I had to build everything again. Now Even I am getting the same error.<br>test1=# create index on points using spgist(g);<br>The connection to the server was lost. Attempting reset: Failed.<br>
!><br><br></div>While using valgrind debuging the following error comes :<br>mohit@mohit-Inspiron-1545:~/builds/source/postgis$ echo "create index on points using spgist(g);" | valgrind --leak-check=yes --log-file=valgrindlog /usr/local/pgsql/bin/postgres -D /usr/local/pgdata --single postgis <br>
FATAL: --single requires a value<br><br></div>Also what is the "path/to/database" to be used for pg_ctl?<br><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br>Mohit<br></div>
<div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 18, 2014 at 1:24 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On Thu, Jul 17, 2014 at 10:20:17PM +0530, mohit kumar wrote:<br>
<br>
> I wantedly defined no operators for the opclass. Only functions.<br>
<br>
</div>I understand sp-gist access method _requires_ defining operators to<br>
implement a set of strategies (numbers 1,5,6,8,10,11).<br>
<br>
Anyway, as the error talks about missing support function instead...<br>
I tried installing your version of PostGIS [1] and here's what I get:<br>
<br>
spgist=# create table t(g geometry);<br>
CREATE TABLE<br>
spgist=# create index on t using spgist(g);<br>
DEBUG: building index "t_g_idx" on table "t"<br>
The connection to the server was lost. Attempting reset: Failed.<br>
!><br>
<br>
Maybe the message you're getting is just misleading due to a memory<br>
bug triggering arbitrary pieces of code ?<br>
<br>
I suggest you add more debugging prints in your code, and also it may<br>
be useful to take a look at what you got so far with valgrind:<br>
<a href="http://blog.cleverelephant.ca/2008/08/valgrinding-postgis.html" target="_blank">http://blog.cleverelephant.ca/2008/08/valgrinding-postgis.html</a><br>
<br>
[1] <a href="https://github.com/mohitkharb/postgis/tree/spgist" target="_blank">https://github.com/mohitkharb/postgis/tree/spgist</a><br>
<div><div><br>
--strk;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div>Mohit Kumar<div>+91-970-3840-175<div>Lab For Spatial Informatics<br>International Institute of Information Technology<br>Hyderabad, India</div></div>
</div></div>
</div></div></div></div></div>