pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: vardan.pogosyn@yandex.ru
Subject: BUG #18251: Incorrect DROP VIEW pg_catalog.* behavior
Date: Sun, 17 Dec 2023 09:44:33 +0000
Message-ID: <18251-1f41c42bb11eace0@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18251
Logged by:          Vardan Pogosyan
Email address:      vardan.pogosyn@yandex.ru
PostgreSQL version: 15.5
Operating system:   Ubuntu 22.04
Description:        

Hello!

When i try to drop and create system view, i get following behavior:

postgres=# DROP VIEW pg_catalog.pg_config;
DROP VIEW

postgres=# CREATE OR REPLACE VIEW pg_catalog.pg_config AS 
SELECT pg_config.name, pg_config.setting 
FROM pg_config() pg_config(name, setting);
ERROR:  permission denied to create "pg_catalog.pg_config"
DETAIL:  System catalog modifications are currently disallowed.

I'm not sure, but it's look strange. 
When i connect to template1, i can use droped views. But if drop view on
template1 problem repeats.

I find it on the PostgreSQL 16, 15, 14 (i didn't try on others).



view thread (2+ messages)  latest in thread

Message-ID: <18251-1f41c42bb11eace0@postgresql.org>
Permalink:  ../18251-1f41c42bb11eace0@postgresql.org/
Also on:    postgresql.org/message-id/18251-1f41c42bb11eace0@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, vardan.pogosyn@yandex.ru
  Subject: Re: BUG #18251: Incorrect DROP VIEW pg_catalog.* behavior
  In-Reply-To: <18251-1f41c42bb11eace0@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox