Re: [HACKERS] pg_upgrade failed if view is based on sequence - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] pg_upgrade failed if view is based on sequence
Date
Msg-id 7187.1500558497@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] pg_upgrade failed if view is based on sequence  (Thom Brown <thom@linux.com>)
List pgsql-hackers
Thom Brown <thom@linux.com> writes:
> On 20 July 2017 at 13:23, tushar <tushar.ahuja@enterprisedb.com> wrote:
>> postgres=# create sequence seq_9166 start 1 increment 1;
>> CREATE SEQUENCE
>> postgres=# create or replace view v3_9166 as select * from seq_9166;
>> CREATE VIEW

> This is because sequence_name, start_value, increment_by, max_value,
> min_value, cache_value and is_cycled are no longer output when
> selecting from sequences.

Yes.  This will not be "fixed"; you'll have to adjust the view before
you can update it to v10.  (If you want those values, you should now
get them out of the pg_sequence catalog.)

This should have been called out as a significant incompatibility
in the v10 release notes, but I see that it's not listed in the
right section.  Will fix that ...
        regards, tom lane



pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: [HACKERS] pg_upgrade failed if view is based on sequence
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] pg_upgrade failed if view contain natural left join condition