Re: Small foreign key error message improvement

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Small foreign key error message improvement
Date: 2009-07-07 10:20:12
Message-ID: 200907071320.12807.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Monday 06 July 2009 23:00:18 Tom Lane wrote:
> It seems to me that the right fix here is not so much to tweak the
> message wording as to put in an error location cursor. In more
> complicated cases (eg, multiple FOREIGN KEY clauses) the suggested
> wording change wouldn't help much anyway.

It looks like this would involve equipping the Value node with location
information and passing that around everywhere. This could also be used to
supply better location information for a number of other cases. Does that
sound like the right direction?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2009-07-07 10:45:14 Re: GRANT ON ALL IN schema
Previous Message tomas 2009-07-07 10:17:26 Re: New types for transparent encryption