I wrote: > I'd be kind of inclined to remove this test script altogether, on the > grounds that it's wasting cycles on a function that doesn't really > do what is claimed (and we should remove the documentation claim, too).
Alternatively, maybe we can salvage the function's usefulness by making it flush WAL before returning? If we go that route, then we have the opposite problem with respect to the test script: rather than trying to make it paper over the function's problems, we ought to try to make it reliably fail with the code as it stands. regards, tom lane