Fix race condition between SELECT and ALTER TABLE NO INHERIT

When Who What
2018-01-12 20:47:44 Tom Lane (tgl) Closed in commitfest 2018-01 with status: Committed
2018-01-12 18:38:30 Tom Lane (tgl) Added tgl as committer
2018-01-12 18:38:27 Tom Lane (tgl) Added tgl as reviewer
2017-11-29 05:04:09 Michael Paquier (michael-kun) Closed in commitfest 2017-11 with status: Moved to next CF
2017-10-01 22:38:24 Daniel Gustafsson (d_gustafsson) Closed in commitfest 2017-09 with status: Moved to next CF
2017-09-13 02:28:20 Kyotaro Horiguchi (horiguti) New status: Needs review
2017-09-12 14:29:20 Aleksander Alekseev (a.alekseev) New status: Waiting on Author
2017-08-28 09:35:48 Kyotaro Horiguchi (horiguti) Changed authors to Kyotaro Horiguchi (horiguti)
2017-08-28 09:35:06 Kyotaro Horiguchi (horiguti) Attached mail thread 20170626.174612.23936762.horiguchi.kyotaro@lab.ntt.co.jp
2017-08-28 09:35:05 Kyotaro Horiguchi (horiguti) Created patch record