Re: pgsql: Added files containing changes between gram.y and preproc.y. - Mailing list pgsql-committers

From Alvaro Herrera
Subject Re: pgsql: Added files containing changes between gram.y and preproc.y.
Date
Msg-id 20081114121620.GB3830@alvh.no-ip.org
Whole thread Raw
In response to pgsql: Added files containing changes between gram.y and preproc.y.  (meskes@postgresql.org (Michael Meskes))
Responses Re: pgsql: Added files containing changes between gram.y and preproc.y.
List pgsql-committers
Michael Meskes wrote:

>         ecpg.header (r1.1)
>
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/ecpg.header?rev=1.1&content-type=text/x-cvsweb-markup)

I stumbled upon this

+               case ET_FATAL:
+                       if (yyin)
+                               fclose(yyin);
+                       if (yyout)
+                               fclose(yyout);
+                       if (unlink(output_filename) != 0 && *output_filename != '-')
+                               fprintf(stderr, _("could not remove output file \"%s\"\n"), output_filename);

and wondered if this works when you have an output file named
"-foobar.c" or something like that ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-committers by date:

Previous
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Fix oversight in previous error-reporting patch; mustn't pfree
Next
From: Michael Meskes
Date:
Subject: Re: pgsql: Added files containing changes between gram.y and preproc.y.