On Fri, Feb 2, 2024 at 5:48 PM Alvaro Herrera <alvhe...@alvh.no-ip.org> wrote: > > If you want the server to send this message when the JSON word is not in > quotes, I'm afraid that's not possible, due to the funny nature of the > FORMAT keyword when the JSON keyword appears after it. But why do you > care? If you use the patch, then you no longer need to have the "not > recognized" error messages anymore, because the JSON format is indeed > a recognized one. >
"JSON word is not in quotes" is my intention. Now it seems when people implement any custom format for COPY, if the format_name is a keyword then we need single quotes. Thanks for clarifying!