pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor

pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor

pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor

pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor

pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor

pgsql: Fix broken handling of domains in atthasmissing logic.

2025-03-03 Thread Tom Lane
Fix broken handling of domains in atthasmissing logic. If a domain type has a default, adding a column of that type (without any explicit DEFAULT clause) failed to install the domain's default value in existing rows, instead leaving the new column null. This is unexpected, and it used to work cor