BUG #8211: Syntax error when creating index on expression

From: acizov(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8211: Syntax error when creating index on expression
Date: 2013-06-05 15:24:28
Message-ID: E1UkFZc-0001It-KC@wrigleys.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: 8211
Logged by: Andrey Cizov
Email address: acizov(at)gmail(dot)com
PostgreSQL version: 9.2.3
Operating system: Windows
Description:

CREATE INDEX heuristic ON foos (1 / (a + b))

causes:

ERROR: syntax error at or near "1"
LINE 1: CREATE INDEX heuristic ON foos (1 / (a + b))
^

********** Error **********

ERROR: syntax error at or near "1"
SQL state: 42601
Character: 33

While:

CREATE INDEX heuristic ON foos ((1 / (a + b)))

Execution successful

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message geoff.montee 2013-06-05 16:07:02 BUG #8212: Feature request: View original value of current_user in function with SECURITY DEFINER set
Previous Message martin.schaefer 2013-06-05 06:54:29 BUG #8210: UTF8 column names corrupted by server