Re: ecpg leaves broken files around

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: ecpg leaves broken files around
Дата
Msg-id 20070611080357.GB26892@svr2.hagander.net
обсуждение исходный текст
Ответ на Re: ecpg leaves broken files around  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: ecpg leaves broken files around  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
On Mon, Jun 11, 2007 at 08:05:16AM +0200, Michael Meskes wrote:
> On Sun, Jun 10, 2007 at 09:56:44PM +0200, Magnus Hagander wrote:
> > AFAIK, most other compilers delete their output if it's not valid. Is
> > there any particular reason why ecpg doesn't do this?
> 
> No, not really. Sometimes it comes handy to see what was already
> processed, but you're right, it's not what I would expect from a
> compiler either.
> 
> Any objects changing this behaviour?

Certainly not from me :)

If you find the other behaviour useful, perhaps add a commandline switch
that makes it leave the file around? Just make the
remove-the-file-on-failure default.

Oh, and it seems if you want to keep the feature, it needs fixing. It looks
like ecpg doesn't flush/close the file descriptor before error-exit, so the
file that drops out isn't even complete up to the point of error. At least
that's what it looks like from a quick glance - it ends mid-row on
something that's not related to the error itself.

//Magnus


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Controlling Load Distributed Checkpoints
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: ToDO, support UPDATE/DELETE WHERE CURRENT OF cursor_name in plpgsql