From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Simon Riggs" <simon(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] COPY with no WAL, in certain circumstances |
Date: | 2007-01-09 21:31:40 |
Message-ID: | 10600.1168378300@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
"Simon Riggs" <simon(at)2ndquadrant(dot)com> writes:
> ...continuing this discussion about setting HEAP_XMIN_COMMITTED...
>> BTW, a sufficient counterexample for that kluge is that neither SPI or
>> SQL-function execution use a separate portal for invoked commands.
> What would the best/acceptable way be to test for this condition?
My opinion is that the only reliable answer would be to find a way not
to have to test. Tuples entered by your own transaction are normally
considered good by tqual.c anyway, and thus I think we might be pretty
close to having it Just Work, but you'd have to go through all the cases
in tqual.c and see if any don't work.
The other point is that to make such an optimization you have to
consider the subtransaction history. For WAL you only have to know that
the table will disappear if the top-level transaction fails, but to
pre-set commit bits requires being sure that the table will disappear
if the current subxact fails --- not the same thing at all.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-01-09 21:32:29 | Re: [HACKERS] Patch to log usage of temporary files |
Previous Message | luis garcia | 2007-01-09 21:07:43 | Nested Tables on PostgreSQL? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-01-09 21:32:29 | Re: [HACKERS] Patch to log usage of temporary files |
Previous Message | Simon Riggs | 2007-01-09 20:09:47 | Re: [PATCHES] COPY with no WAL, in certain circumstances |