Hi mark<br>
i executed<br>
<span style="font-weight: bold;">createlang plpgsql test</span><br>
Then<span style="font-weight: bold;"><br>
</span><span style="font-weight: bold;" class="q">psql -d test -f lwpostgis.sql</span><br style="font-weight: bold;"><br>
I don't know why it is happening like this.<br>
Thanks for your time.<br>
<br><div><span class="gmail_quote">On 5/10/07, <b class="gmail_sendername">Mark Cave-Ayland</b> <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2007-05-10 at 11:59 -0400, vamsee movva wrote:<br>> Hi Mark<br>> I removed templategis from the above mentioned placed.<br>> Then i executed make and make install<br>> Then i tried to executed psql -d test -f 
lwpostgis.sql<br>> It gave me lot of errors like<br>><br>> psql:lwpostgis.sql:3875: ERROR:  current transaction is aborted,<br>> commands ignored until end of transaction block<br>> ERROR:  current transaction is aborted, commands ignored until end of
<br>> transaction block<br>> STATEMENT:  CREATE OR REPLACE FUNCTION ST_PolyFromText(text, int4)<br>>                 RETURNS geometry<br>>                 AS '<br>>                
SELECT CASE WHEN geometrytype(GeomFromText($1, $2)) =<br>> ''POLYGON''<br>>                 THEN GeomFromText($1, $2)<br>>                 ELSE NULL END<br>>                 '<br>>                
LANGUAGE 'SQL' IMMUTABLE STRICT;<br>><br>> Thanks for your help<br><br><br>OK that's looking better... PostgreSQL outputs one ERROR per statement,<br>so you'll need to scroll back up your terminal to see what the first
<br>ERROR statement was. My first guess is that you didn't install PL/PGSQL<br>according to <a href="http://postgis.refractions.net/docs/ch02.html#PGInstall">http://postgis.refractions.net/docs/ch02.html#PGInstall</a>
:<br>e.g. you need to do:<br><br>createlang plpgsql test<br>psql -d test -f lwpostgis.sql<br>psql -d test -f spatial_ref_sys.sql<br><br><br>Kind regards,<br><br>Mark.<br><br>--<br>ILande - Open Source Consultancy<br><a href="http://www.ilande.co.uk">
http://www.ilande.co.uk</a><br><br><br>_______________________________________________<br>postgis-devel mailing list<br><a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">
http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br></blockquote></div><br>