BUG #18222: Unexpected Error--Cannot delete from scalar

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: bajinsheng(at)u(dot)nus(dot)edu
Subject: BUG #18222: Unexpected Error--Cannot delete from scalar
Date: 2023-12-04 05:56:09
Message-ID: 18222-de86a89e6ed68f3d@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18222
Logged by: Jinsheng Ba
Email address: bajinsheng(at)u(dot)nus(dot)edu
PostgreSQL version: 16.1
Operating system: Ubuntu
Description:

SELECT ('1'-to_hex(2))::BOOLEAN; -- ERROR: cannot delete from scalar

This error looks strange to me as I do not understand what this error
means.

If I execute the following query, there is no error instead:
SELECT '1'-2; -- {-2}

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2023-12-04 06:27:55 BUG #18223: There is a confusing result where an update statement can reference itself and execute successfully.
Previous Message Ba Jinsheng 2023-12-04 01:17:57 Re: Re:BUG #18221: Unexpected Query Result