Re: Better error reporting from extension scripts (Was: Extend ALTER OPERATOR)
| От | Christoph Berg |
|---|---|
| Тема | Re: Better error reporting from extension scripts (Was: Extend ALTER OPERATOR) |
| Дата | |
| Msg-id | Zvbr5zv78AfhB83S@msg.df7cb.de обсуждение исходный текст |
| Ответ на | Re: Better error reporting from extension scripts (Was: Extend ALTER OPERATOR) (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Better error reporting from extension scripts (Was: Extend ALTER OPERATOR)
|
| Список | pgsql-hackers |
Re: Tom Lane > Perhaps. I spent a little more effort on this and added code to > report errors that don't come with an error location. On those, > we don't have any constraints about what to report in the QUERY > field, so I made it trim the string to just the current query > within the script, which makes things quite a bit better. You > can see the results in the test_extensions regression test changes. That looks very good me, thanks! > (It might be worth some effort to trim away comments appearing > just before a command, but I didn't tackle that here.) The "error when psql" comments do look confusing, but I guess in other places the comment just before the query adds valuable context, so I'd say leaving the comments in is ok. Christoph
В списке pgsql-hackers по дате отправления: