#4160 closed defect (fixed)
CREATE or UPDATE extension fails if layer / topology table exists in the public schema
Reported by: | Algunenano | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.5.0 |
Component: | build | Version: | 2.2.x |
Keywords: | Cc: |
Description
CREATE
extension fails when either public.layer
or public.topology
exists, which blocks installation or updating the extension.
Example with creation:
postgis_test=# create extension postgis_topology; CREATE EXTENSION postgis_test=# drop extension postgis_topology; DROP EXTENSION postgis_test=# create table layer ( a int ); CREATE TABLE postgis_test=# create extension postgis_topology; ERROR: table "layer" is not a member of the extension being created
With the update:
postgis_test=# create extension postgis_topology; CREATE EXTENSION postgis_test=# create table layer ( a int ); CREATE TABLE "2.5.0rc1dev" "2.5.0rc1devnext" postgis_test=# \dt public.* List of relations Schema | Name | Type | Owner --------+-----------------+-------+---------- public | layer | table | postgres public | spatial_ref_sys | table | postgres (2 rows) postgis_test=# \dt topology.* List of relations Schema | Name | Type | Owner ----------+----------+-------+---------- topology | layer | table | postgres topology | topology | table | postgres (2 rows) postgis_test=# alter extension postgis_topology update TO "2.5.0rc1devnext" ; ERROR: table "layer" is not a member of the extension being created
Note:
See TracTickets
for help on using tickets.
WIP in https://github.com/postgis/postgis/pull/300
I'll do some manual tests and try to see how long back do we want to port the fix.