Re: Re: Refresh Publication takes hours and doesn´t finish
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabrízio de Royes Mello <fabrizio@timbira.com.br>
Cc: PegoraroF10 <marcos@f10.com.br>,
Postgres General <pgsql-general@postgresql.org>
Date: 2019-05-21T17:41:02Z
Lists: pgsql-hackers, pgsql-general
=?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= <fabrizio@timbira.com.br> writes: > As I said before to change system catalog you should set > "allow_system_table_mods=on" and restart PostgreSQL service. > After that you'll able to recreate the "pg_catalog.pg_publication_tables" > system view. (You can use the Tom's suggestion using LATERAL) It's a view, not a table, so I don't think you need allow_system_table_mods. A quick test here says that being superuser is enough to do a CREATE OR REPLACE VIEW on it. regards, tom lane
Commits
-
Fix O(N^2) performance issue in pg_publication_tables view.
- 166f69f769c8 12.0 landed
-
Clean up the behavior and API of catalog.c's is-catalog-relation tests.
- 2d7d946cd323 12.0 cited