I have a "Baby Barrier". It seems well built and is easy to install and remove. The posts go into plastic sleeves that are inserted into holes drilled in the deck. Caps cover the holes when not in use. The "fence" is a fabric mesh.

I have to say little ones are infrequent around here, so it doesn't get much use, but is required by code here in Fl.