Improve the error message for an inappropriate column definition list.
Tom Lane <tgl@sss.pgh.pa.us>
Improve the error message for an inappropriate column definition list. The existing message about "a column definition list is only allowed for functions returning "record"" could be given in some cases where it was fairly confusing; in particular, a function with multiple OUT parameters *does* return record according to pg_proc. Break it down into a couple more cases to deliver a more on-point complaint. Per complaint from Bruce Momjian. Discussion: https://postgr.es/m/798909.1600562993@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_relation.c | modified | +37 −7 |
| src/test/regress/expected/rangefuncs.out | modified | +13 −0 |
| src/test/regress/sql/rangefuncs.sql | modified | +5 −0 |
Discussion
- Please provide examples of rows from 16 messages · 2020-04-08 → 2020-10-05