Re: [HACKERS] pg_dump disaster

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: prlw1(at)cam(dot)ac(dot)uk, pgsql-hackers(at)postgreSQL(dot)org, bright(at)wintelcom(dot)net
Subject: Re: [HACKERS] pg_dump disaster
Date: 2000-01-21 06:09:57
Message-ID: 3748.948434997@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> I thought these patches should not have been applied without more
>> peer review, and now I'm sure of it. I recommend reverting 'em.

> Can we give the submitter a few days to address the issue?

Sure, we have plenty of time. But I don't think the problem can be
fixed without starting over. He's taken routines that had two possible
return conditions ("Success" and "Hard failure: he's dead, Jim") and
added a third condition ("I didn't do what I was supposed to do, or
perhaps only some of what I was supposed to do, because I was afraid
of blocking"). If dealing with that third condition could be hidden
entirely inside libpq, that'd be OK, but the entire point of this
set of changes is to bounce control back to the application rather
than block. Therefore, what we are looking at is a fundamental change
in the API of existing routines, which is *guaranteed* to break existing
applications. (Worse, it breaks them subtly: the code will compile,
and may even work under light load.)

I think the correct approach is to leave the semantics of the existing
exported routines alone, and add parallel entry points with new
semantics to be used by applications that need to avoid blocking.
That's what we've done for queries, and later for connecting, and it
hasn't broken anything.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 2000-01-21 06:26:33 Re: [HACKERS] vacuum timings
Previous Message Paul Schulz 2000-01-21 05:58:43 Re: [HACKERS] timezone problem?