empty column name in error message

Amit Langote <amitlangote09@gmail.com>

From: Amit Langote <amitlangote09@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-12-17T06:47:07Z
Lists: pgsql-hackers

Attachments

Hi,

I wonder if it's worthwhile to fix the following not-so-friendly error message:

create index on foo ((row(a)));
ERROR:  column "" has pseudo-type record

For example, the attached patch makes it this:

create index on foo ((row(a)));
ERROR:  column "row" has pseudo-type record

Note that "row" as column name has been automatically chosen by the caller.

Thanks,
Amit

Commits

  1. Fix error reporting for index expressions of prohibited types.