pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15871: Regression in 11.4 altering type on column with an index
3+ messages / 3 participants
[nested] [flat]

* BUG #15871: Regression in 11.4 altering type on column with an index
@ 2019-06-25 04:49  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2019-06-25 04:49 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: pgsql@tomd.cc

The following bug has been logged on the website:

Bug reference:      15871
Logged by:          Tom Dunstan
Email address:      pgsql@tomd.cc
PostgreSQL version: 11.4
Operating system:   Linux x86_64 (Alpine 3.9)
Description:        

This worked up to 11.3:

test=# CREATE TABLE foo (ts1 TIMESTAMP NOT NULL, ts2 TIMESTAMP NOT NULL);
CREATE TABLE
test=# CREATE INDEX foo_ts1_idx ON foo (ts1);
CREATE INDEX
test=# CREATE INDEX foo_ts2_idx ON foo (ts2);
CREATE INDEX
test=# ALTER TABLE FOO ALTER ts1 TYPE TIMESTAMP WITH TIME ZONE, ALTER ts2
TYPE TIMESTAMP WITH TIME ZONE;
ERROR:  42P07: relation "foo_ts1_idx" already exists
LOCATION:  index_create, index.c:877

Necessary condition seems to be:
 - Multiple columns altered in the same statement
 - Both altered columns have an index

Altering in separate statements, or not having one of the indexes doesn't
trigger it.

May be related to this item mentioned in the 11.4 release notes: "Fix
failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial
exclusion constraint (Tom Lane)"



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* BUG #15871: Regression in 11.4 altering type on column with an index
@ 2019-06-25 05:03  David G. Johnston <david.g.johnston@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: David G. Johnston @ 2019-06-25 05:03 UTC (permalink / raw)
  To: pgsql@tomd.cc <pgsql@tomd.cc>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>

On Monday, June 24, 2019, PG Bug reporting form <noreply@postgresql.org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference:      15871
> Logged by:          Tom Dunstan
> Email address:      pgsql@tomd.cc
> PostgreSQL version: 11.4
> Operating system:   Linux x86_64 (Alpine 3.9)
> Description:
>
> test=# ALTER TABLE FOO ALTER ts1 TYPE TIMESTAMP WITH TIME ZONE, ALTER ts2
> TYPE TIMESTAMP WITH TIME ZONE;
> ERROR:  42P07: relation "foo_ts1_idx" already exists
> LOCATION:  index_create, index.c:877
>
> Necessary condition seems to be:
>  - Multiple columns altered in the same statement
>  - Both altered columns have an index
>

Seems to be the same behavior as BUG #1586 whose fix just got applied today
and will appear in the next point release.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15871: Regression in 11.4 altering type on column with an index
@ 2019-06-25 05:25  Tom Dunstan <pgsql@tomd.cc>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Dunstan @ 2019-06-25 05:25 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>

On Tue, 25 Jun 2019 at 14:33, David G. Johnston <david.g.johnston@gmail.com>
wrote:

>
> Seems to be the same behavior as BUG #1586 whose fix just got applied
> today and will appear in the next point release.
>

Ah, I missed that one when eyeballing the archives, I guess I didn't go
back far enough. Yes, absolutely looks the same, thanks.

Cheers

Tom

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-06-25 05:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 04:49 BUG #15871: Regression in 11.4 altering type on column with an index PG Bug reporting form <noreply@postgresql.org>
2019-06-25 05:03 ` David G. Johnston <david.g.johnston@gmail.com>
2019-06-25 05:25   ` Tom Dunstan <pgsql@tomd.cc>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox