pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15807: pg_upgrade does not account for renaming of system catalog column names
3+ messages / 3 participants
[nested] [flat]

* BUG #15807: pg_upgrade does not account for renaming of system catalog column names
@ 2019-05-15 18:06 PG Bug reporting form <noreply@postgresql.org>
  2019-05-15 18:39 ` Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2019-05-15 18:06 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: richyen3@gmail.com

The following bug has been logged on the website:

Bug reference:      15807
Logged by:          Richard Yen
Email address:      richyen3@gmail.com
PostgreSQL version: 10.8
Operating system:   CentOS 6
Description:        

example: pg_stat_replication.sent_location was renamed to
pg_stat_replication.sent_lsn in v10.  If a view in 9.6 refers to
pg_stat_replication.sent_location, pg_upgrade fails entirely because "column
pg_stat_replication.sent_location does not exist"



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

* Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names
  2019-05-15 18:06 BUG #15807: pg_upgrade does not account for renaming of system catalog column names PG Bug reporting form <noreply@postgresql.org>
@ 2019-05-15 18:39 ` Tom Lane <tgl@sss.pgh.pa.us>
  2019-05-15 18:44   ` Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names Richard Yen <richyen3@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2019-05-15 18:39 UTC (permalink / raw)
  To: richyen3@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org

PG Bug reporting form <noreply@postgresql.org> writes:
> example: pg_stat_replication.sent_location was renamed to
> pg_stat_replication.sent_lsn in v10.

Yeah, that's a documented compatibility issue, per the v10 notes:

  * Rename WAL-related functions and views to use lsn instead of location
    (David Rowley)

> If a view in 9.6 refers to
> pg_stat_replication.sent_location, pg_upgrade fails entirely because "column
> pg_stat_replication.sent_location does not exist"

It is not pg_upgrade's job to fix such things.  Sorry.

			regards, tom lane





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

* Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names
  2019-05-15 18:06 BUG #15807: pg_upgrade does not account for renaming of system catalog column names PG Bug reporting form <noreply@postgresql.org>
  2019-05-15 18:39 ` Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-05-15 18:44   ` Richard Yen <richyen3@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Richard Yen @ 2019-05-15 18:44 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs@lists.postgresql.org

Ok, thanks for the clarification!

--Richard

On Wed, May 15, 2019 at 11:39 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:

> PG Bug reporting form <noreply@postgresql.org> writes:
> > example: pg_stat_replication.sent_location was renamed to
> > pg_stat_replication.sent_lsn in v10.
>
> Yeah, that's a documented compatibility issue, per the v10 notes:
>
>   * Rename WAL-related functions and views to use lsn instead of location
>     (David Rowley)
>
> > If a view in 9.6 refers to
> > pg_stat_replication.sent_location, pg_upgrade fails entirely because
> "column
> > pg_stat_replication.sent_location does not exist"
>
> It is not pg_upgrade's job to fix such things.  Sorry.
>
>                         regards, tom lane
>

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


end of thread, other threads:[~2019-05-15 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 18:06 BUG #15807: pg_upgrade does not account for renaming of system catalog column names PG Bug reporting form <noreply@postgresql.org>
2019-05-15 18:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-05-15 18:44   ` Richard Yen <richyen3@gmail.com>

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