Re: [HACKERS] Extending error-location reports deeper into the system

2008-08-24 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > "Tom Lane" <[EMAIL PROTECTED]> writes: >> If we didn't set the locations to unknown, then errors complaining about >> problems arising within a rule would try to print pointers to locations in >> the calling query's text having the same offsets as the pro

Re: [HACKERS] Extending error-location reports deeper into the system

2008-08-24 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes: "Tom Lane" <[EMAIL PROTECTED]> writes: > If we didn't set the locations to unknown, then errors complaining about > problems arising within a rule would try to print pointers to locations in > the calling query's text having the same offsets as the problemat

[HACKERS] Extending error-location reports deeper into the system

2008-08-24 Thread Tom Lane
We currently have the ability to generate error location pointers, such as regression=# select nosuchcolumn from int8_tbl; ERROR: column "nosuchcolumn" does not exist LINE 1: select nosuchcolumn from int8_tbl; ^ for grammar-detected syntax errors and for errors during first-level