On 17 January 2014 16:34, Heikki Linnakangas <hlinnakan...@vmware.com> wrote: > 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.
OK, I'll remove them, thanks. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers