=?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= <fabrizio@xxxxxxxxxxxxxx> writes: > Em ter, 21 de mai de 2019 às 14:41, Tom Lane <tgl@xxxxxxxxxxxxx> escreveu: >> 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. > Interesting, I tried the following commands and got error: Oh, huh, this is something that changed recently in HEAD --- since commit 2d7d946cd, stuff created by system_views.sql is not protected as though it were a system catalog. So in released versions, yes you need allow_system_table_mods=on. Sorry for the misinformation. regards, tom lane