Ticket #585 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Error running topology.sql

Reported by: aperi2007 Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: 1.5.X
Keywords: Cc:

Description

Try-ing to install the topology module, when I try to run

make psql -h localhost -f topology.sql

I have an error and all rollbacks.

...... psql:topology.sql:676: ERROR: syntax error at or near "table"

RIGA 60: quote_literal(table) ,

psql:topology.sql:683: ERROR: current transaction is aborted, commands ignored until end of transaction block psql:topology.sql:784: ERROR: current transaction is aborted, commands ignored until end of transaction block .....

I'm using

postgres 9.0rc1 postgis r5960 geos r3104 on Debian 5.0 Lenny 32 bit.

Attachments

no_table.patch Download (3.9 KB) - added by strk 3 years ago.

Change History

Changed 3 years ago by strk

Changed 3 years ago by strk

Please try applying the attached patch (no_table.patch).

$ cd topology
$ wget http://trac.osgeo.org/postgis/raw-attachment/ticket/585/no_table.patch
$ patch -p0 < no_table.patch

I don't have 9.0 to test atm

Changed 3 years ago by aperi2007

Hi,

I tested it. Now it was execute without errors.

Just an addendum:

I think the README must be enhanced . Now it say this:

make psql -f topology.sql

I think was better something like this (more general):

make psql -f -d <database postgis enabled> -U <username owner database> -f topology.sql

Regards,

Andrea.

Changed 3 years ago by strk

  • status changed from new to closed
  • resolution set to fixed

Thanks for testing. Committed in r5964. README updated to include the postgis-enable requirement in r5965.

Changed 2 years ago by robe

  • component changed from postgis to topology
Note: See TracTickets for help on using tickets.