Ticket #661 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Type info of geography columns incomplete - pg_dump output wrong

Reported by: tider Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.3
Component: postgis Version: 1.5.X
Keywords: geography pg_dump Cc:

Description

Steps to reproduce (using interactive psql):

test=# CREATE table test (geom geography(GEOMETRY,4326)); CREATE TABLE test=# \d test

Table "public.test"

Column | Type | Modifiers


geom | geography(4326) |

Note the wrong type "geography(4326)", it should be "geography(GEOMETRY,4326)". This type info is used by pg_dump as well, resulting in a failing CREATE TABLE statement.

Attachments

pg661a.patch Download (0.7 KB) - added by pramsey 2 years ago.
Does this help?

Change History

Changed 3 years ago by tider

Again, nicer:

Steps to reproduce (using interactive psql):


test=# CREATE table test (geom geography(GEOMETRY,4326));
CREATE TABLE
test=# \d test
         Table "public.test"
 Column |      Type       | Modifiers 
--------+-----------------+-----------
 geom   | geography(4326) | 


Note the wrong type "geography(4326)", it should be "geography(GEOMETRY,4326)". This type info is used by pg_dump as well, resulting in a failing CREATE TABLE statement.

Changed 3 years ago by pramsey

The idea was that geography(geometry,4326) and geography(4326) would be equivalent. I will look and see if it's possible to make the create table statement more liberal.

Changed 2 years ago by pramsey

Does this help?

Changed 2 years ago by pramsey

Fixed in r7248 in trunk and r7247 in 1.5 branch

Changed 2 years ago by pramsey

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.