pgsql: Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.

2021-06-18 Thread Tom Lane
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN. This works fine in the "simple Query" code path; but if the statement is in the plan cache then it's corrupted for future re-execution. Apply copyObject() to protect the original tree from modification, as we've done elsewhere. This nar

pgsql: Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.

2021-06-18 Thread Tom Lane
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN. This works fine in the "simple Query" code path; but if the statement is in the plan cache then it's corrupted for future re-execution. Apply copyObject() to protect the original tree from modification, as we've done elsewhere. This nar

pgsql: Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.

2021-06-18 Thread Tom Lane
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN. This works fine in the "simple Query" code path; but if the statement is in the plan cache then it's corrupted for future re-execution. Apply copyObject() to protect the original tree from modification, as we've done elsewhere. This nar

pgsql: Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.

2021-06-18 Thread Tom Lane
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN. This works fine in the "simple Query" code path; but if the statement is in the plan cache then it's corrupted for future re-execution. Apply copyObject() to protect the original tree from modification, as we've done elsewhere. This nar

pgsql: Avoid scribbling on input node tree in CREATE/ALTER DOMAIN.

2021-06-18 Thread Tom Lane
Avoid scribbling on input node tree in CREATE/ALTER DOMAIN. This works fine in the "simple Query" code path; but if the statement is in the plan cache then it's corrupted for future re-execution. Apply copyObject() to protect the original tree from modification, as we've done elsewhere. This nar