Specifically, if you try to open a file for copy, and it isn't there it will return
int errcode_for_file_access(void) { case ENOENT: /* No such file or directory */ edata->sqlerrcode = ERRCODE_UNDEFINED_OBJECT; break; Dave On Sat, 2003-08-23 at 15:42, Peter Eisentraut wrote: > Dave Cramer writes: > > > I'm working on identifying various errors in ecpg using sql state and > > one which is particularly ambiguous is ERRCODE_UNDEFINED_OBJECT for a > > file which isn't found. This is returned in a number of places. Is it > > possible to get a set of file specific error codes? > > That error code if for undefined objects, not files that can't be found. > Can you identify the cases you are concerned about? -- Dave Cramer <[EMAIL PROTECTED]> fastcrypt ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html