On 01/17/2014 05:20 PM, Simon Riggs wrote:
> + if (RelationNeedsWAL(indexrel))
> + CHECK_FOR_WAL_BUDGET();
I don't think we need the RelationNeedsWAL tests. If the relation is not
WAL-logged, you won't write much WAL, so you should easily stay under
the limit. And CHECK_FOR_WAL_BUDGET() better be cheap when you're below
the limit.
- Heikki