pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: boekewurm+postgres@gmail.com
Subject: BUG #16818: progress reporting ALTER TABLE ADD UNIQUE
Date: Mon, 11 Jan 2021 19:31:48 +0000
Message-ID: <16818-4313f4b1612e09d7@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16818
Logged by:          Matthias van de  Meent
Email address:      boekewurm+postgres@gmail.com
PostgreSQL version: 12.5
Operating system:   Debian Stretch (9.13)
Description:        

This may be considered a nitpick, but:

The progress reprorting for `ALTER TABLE test ADD UNIQUE (col)` is in
`pg_stat_progress_create_index`. As it indeed creates an index, that is not
too unexpected, but the `command` column of that view reports `CREATE
INDEX`, and _that_ is somewhat unexpected. A reasonable expectation would be
`ALTER TABLE ADD CONSTRAINT` or comparable. 

The only discussion regarding `ALTER TABLE` in index progress reporting
seems to have been in the original thread[0], but that was about potentially
thrashing callers' progress reporting status/values, and less about the
command name of this backend state.

[0]
https://www.postgresql.org/message-id/flat/20190329150828.s2bu4zckuxnceo6u%40alap3.anarazel.de



view thread (3+ messages)  latest in thread

Message-ID: <16818-4313f4b1612e09d7@postgresql.org>
Permalink:  ../16818-4313f4b1612e09d7@postgresql.org/
Also on:    postgresql.org/message-id/16818-4313f4b1612e09d7@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, boekewurm+postgres@gmail.com
  Subject: Re: BUG #16818: progress reporting ALTER TABLE ADD UNIQUE
  In-Reply-To: <16818-4313f4b1612e09d7@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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