Re: ALTER DATABASE RESET with unexistent guc doesn't report an error

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Vitaly Davydov <v(dot)davydov(at)postgrespro(dot)ru>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ALTER DATABASE RESET with unexistent guc doesn't report an error
Date: 2025-09-11 15:00:03
Message-ID: CALdSSPitQ7SZp_ohBD0xnMN-4QYs7Vj0=VbfmDsV7RrpnPWE8g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 11 Sept 2025 at 19:27, Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2025-Sep-11, Kirill Reshke wrote:
>
> > I think we can remove "support" for ALTER DATABASE RESET TABLESPACE.
>
> What about ALTER USER RESET TABLESPACE?
>
> --
> Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
> "Computing is too important to be left to men." (Karen Spärck Jones)

Does this feature work?

```
reshke=# alter user u1 set tablespace to tb2;
ERROR: unrecognized configuration parameter "tablespace"
```

Also this:

```
reshke=# alter table ss reset tablespace ;
ERROR: syntax error at or near "tablespace"
LINE 1: alter table ss reset tablespace ;
^
```

"tablespace" is tab-completed after 'alter table ss reset <TAB>' which
is a least strange

--
Best regards,
Kirill Reshke

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2025-09-11 15:21:45 Re: PgStat_HashKey padding issue when passed by reference
Previous Message Jacob Champion 2025-09-11 14:55:37 Re: Update Windows CI Task Names: Server 2022 + VS 2022 Upgrade