We did some tests about the practical limitations of the bytea data type. There is a theoretical limit of 1 GB. But the practical limit is about 20 MB. Processing large data bytea requires too much RAM, and encoding and decoding takes some time. Personally, I do not think that storing video is a good idea, but if you need it, then use large objects - blobs.
source share