Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote

Поиск
Список
Период
Сортировка
От Álvaro Herrera
Тема Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote
Дата
Msg-id 202503271303.dsnq652h7e7d@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote
Список pgsql-hackers
On 2025-Mar-27, Andrew Dunstan wrote:

> I don't think we can backpatch this. It's a behaviour change.

I agree, we can't.

Also, if we're going to enforce this rule, then pg_upgrade --check needs
to alert users that they have a database name that's no longer valid.
That needs to be part of this patch as well.  We should also ensure that
these are the only problem characters, which IMO means it should add a
test for pg_dumpall that creates a database whose name has all possible
characters and ensures that it is dumpable.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"La virtud es el justo medio entre dos defectos" (Aristóteles)



В списке pgsql-hackers по дате отправления: