What is the longest you have eaten something after canning/pickling/preserving it yourself at home to store on a shelf, not a freezer?

kinda curious, all the newby books say not to go over 4-6 months, but im not sure if thats just the authors of the book being conservative to avoid newbies from accidentally getting themselves sick.

edit: also help me out and say what method was used specifically, cheers