Re: pgsql: Rework the pg_statistic_ext catalog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Rework the pg_statistic_ext catalog
Дата
Msg-id 8833.1560647898@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Rework the pg_statistic_ext catalog  (Tomas Vondra <tomas.vondra@postgresql.org>)
Ответы Re: pgsql: Rework the pg_statistic_ext catalog  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Tomas Vondra <tomas.vondra@postgresql.org> writes:
> Rework the pg_statistic_ext catalog

So ... not one of the buildfarm members that are running TAP tests
likes this.  The failures look like

# Running: pg_dump --no-sync --file=/Users/tgl/pgsql/src/bin/pg_dump/tmp_check/tmp_test_cSh8/role.sql
--role=regress_dump_test_role--schema=dump_test_second_schema postgres 
pg_dump: error: query failed: ERROR:  permission denied for table pg_statistic_ext
pg_dump: error: query was: SELECT tableoid, oid, stxname, stxnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE
oid= stxowner) AS rolname FROM pg_catalog.pg_statistic_ext 
not ok 4576 - role: pg_dump runs

#   Failed test 'role: pg_dump runs'
#   at t/002_pg_dump.pl line 3418.

I think probably what's happening is that pg_dump is still trying to dump
directly from the catalog, when what it needs to do now is dump from the
view, in case it's not running as superuser.

            regards, tom lane



В списке pgsql-committers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Fix incorrect CREATE STATISTICS example in docs
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Rework the pg_statistic_ext catalog