The exclusion applies if you had 5 or more years of creditable service as of 8/12/89. Defined benefit plans do include Federal Employees' Retirement System.
Thrift savings plans are considered retirement plans under the federal sector and would be included. Please see the attached for more details.
**Mark the post that answers your question by clicking on "Mark as Best Answer"
This is actually a maybe/maybe not situation for the TSP....for a TSP distribution to be eligible for exemption under Bailey, you had to be making contributions to the TSP before 12 Aug of 1989, and even then, it is possible that not all of the distribution is Bailey eligible. See the discussion in section 4 on pages 42 and 43 of the following NC tax bulletin for details to see if it affects you:
".....it is possible for a participant in the Federal Thrift Savings Plan to be vested as of August 12, 1989, in some components of the plan while at the same time not being vested in other components. "