> insert into mgc values (' ');
I don't think this string is correctly unicode-encoded. Anyway "length"claims it is 30 characters.
regards, tom lane