diff options
| author | Tom Lane | 2026-01-04 18:23:26 +0000 |
|---|---|---|
| committer | Tom Lane | 2026-01-04 19:16:20 +0000 |
| commit | 62299bbd90d69e2273d3e2ba35af5953d20ca037 (patch) | |
| tree | 385cf1a0aa1c29d48f08c28b45e0c1f2a05733fe /src/test | |
| parent | ac94ce8194e501c1ace7115e5e4720e0da4b5168 (diff) | |
Add parse location to IndexElem.
This patch mostly just fills in the field, although a few error
reports in resolve_unique_index_expr() are adjusted to use it.
The next commit will add more uses.
catversion bump out of an abundance of caution: I'm not sure
IndexElem can appear in stored rules, but I'm not sure it can't
either.
Author: Álvaro Herrera <alvherre@kurilemu.de>
Co-authored-by: jian he <jian.universality@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CACJufxH3OgXF1hrzGAaWyNtye2jHEmk9JbtrtGv-KJK6tsGo5w@mail.gmail.com
Discussion: https://postgr.es/m/202512121327.f2zimsr6guso@alvherre.pgsql
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/insert_conflict.out | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/regress/expected/insert_conflict.out b/src/test/regress/expected/insert_conflict.out index 91fbe91844d..b0e12962088 100644 --- a/src/test/regress/expected/insert_conflict.out +++ b/src/test/regress/expected/insert_conflict.out @@ -5,15 +5,15 @@ create table insertconflicttest(key int4, fruit text); -- invalid clauses insert into insertconflicttest values (1) on conflict (key int4_ops (fillfactor=10)) do nothing; ERROR: operator class options are not allowed in ON CONFLICT clause -LINE 1: ...rt into insertconflicttest values (1) on conflict (key int4_... +LINE 1: ...t into insertconflicttest values (1) on conflict (key int4_o... ^ insert into insertconflicttest values (1) on conflict (key asc) do nothing; ERROR: ASC/DESC is not allowed in ON CONFLICT clause -LINE 1: ...rt into insertconflicttest values (1) on conflict (key asc) ... +LINE 1: ...t into insertconflicttest values (1) on conflict (key asc) d... ^ insert into insertconflicttest values (1) on conflict (key nulls last) do nothing; ERROR: NULLS FIRST/LAST is not allowed in ON CONFLICT clause -LINE 1: ...rt into insertconflicttest values (1) on conflict (key nulls... +LINE 1: ...t into insertconflicttest values (1) on conflict (key nulls ... ^ -- These things should work through a view, as well create view insertconflictview as select * from insertconflicttest; |
