[COMMITTERS] pgsql: Add missing #include.

2014-03-14 Thread Tom Lane
Add missing #include. Commit 31400a673 and siblings added a check_stack_depth() call in contrib/intarray/_int_bool.c, but neglected to note that in our oldest branches that file didn't have the #include that defines that function. This results in a fortunately-harmless compiler warning. Per build

[COMMITTERS] pgsql: Add missing #include.

2014-03-14 Thread Tom Lane
Add missing #include. Commit 31400a673 and siblings added a check_stack_depth() call in contrib/intarray/_int_bool.c, but neglected to note that in our oldest branches that file didn't have the #include that defines that function. This results in a fortunately-harmless compiler warning. Per build

[COMMITTERS] pgsql: Fix race condition in B-tree page deletion.

2014-03-14 Thread Heikki Linnakangas
Fix race condition in B-tree page deletion. In short, we don't allow a page to be deleted if it's the rightmost child of its parent, but that situation can change after we check for it. Problem --- We check that the page to be deleted is not the rightmost child of its parent, and then lock i