[HACKERS] Back-branch release notes up for review

Поиск
Список
Период
Сортировка
Искать

[HACKERS] Back-branch release notes up for review

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
I've drafted notes for next week's brown-paper-bag releases.
If you want to review, see
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=f1b10496a55a64b2872633850e55a2cd9d1c9108
		regards, tom lane


Re: [HACKERS] Back-branch release notes up for review

От:
Noah Misch <noah@leadboat.com>
Дата:
On Sat, Aug 26, 2017 at 03:31:12PM -0400, Tom Lane wrote:
> +    
> +
> +     
> +      Show foreign tables
> +      in information_schema</>.table_privileges</>
> +      view (Peter Eisentraut)
> +     
> +
> +     
> +      All other relevant information_schema</> views include
> +      foreign tables, but this one ignored them.
> +     
> +
> +     
> +      Since this view definition is installed by initdb</>,
> +      merely upgrading will not fix the problem.  If you need to fix this
> +      in an existing installation, you can, as a superuser, do this
> +      in psql</>:
> +
> +BEGIN;
> +DROP SCHEMA information_schema CASCADE;
> +\i SHAREDIR</>/information_schema.sql
> +COMMIT;
> +
> +      (Run pg_config --sharedir</> if you're uncertain
> +      where SHAREDIR</> is.)  This must be repeated in each
> +      database to be fixed.
> +     
> +    

"DROP SCHEMA information_schema CASCADE;" will drop objects outside
information_schema that depend on objects inside information_schema.  For
example, this will drop user-defined views if the view query refers to
information_schema.  That's improper in a release-noted update procedure.
This could instead offer a CREATE OR REPLACE VIEW or just hand-wave about the
repaired definition being available in information_schema.sql.

I regret not reading this before today.


Re: [HACKERS] Back-branch release notes up for review

От:
Noah Misch <noah@leadboat.com>
Дата:
Вложения:
On Thu, Aug 31, 2017 at 02:53:45AM +0000, Noah Misch wrote:
> On Sat, Aug 26, 2017 at 03:31:12PM -0400, Tom Lane wrote:
> > +    
> > +
> > +     
> > +      Show foreign tables
> > +      in information_schema</>.table_privileges</>
> > +      view (Peter Eisentraut)
> > +     
> > +
> > +     
> > +      All other relevant information_schema</> views include
> > +      foreign tables, but this one ignored them.
> > +     
> > +
> > +     
> > +      Since this view definition is installed by initdb</>,
> > +      merely upgrading will not fix the problem.  If you need to fix this
> > +      in an existing installation, you can, as a superuser, do this
> > +      in psql</>:
> > +
> > +BEGIN;
> > +DROP SCHEMA information_schema CASCADE;
> > +\i SHAREDIR</>/information_schema.sql
> > +COMMIT;
> > +
> > +      (Run pg_config --sharedir</> if you're uncertain
> > +      where SHAREDIR</> is.)  This must be repeated in each
> > +      database to be fixed.
> > +     
> > +    
> 
> "DROP SCHEMA information_schema CASCADE;" will drop objects outside
> information_schema that depend on objects inside information_schema.  For
> example, this will drop user-defined views if the view query refers to
> information_schema.  That's improper in a release-noted update procedure.
> This could instead offer a CREATE OR REPLACE VIEW or just hand-wave about the
> repaired definition being available in information_schema.sql.

I lean toward the former, attached.  Conveniently, every released branch has
the same definition for this view.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
FAQ