Hi Florin, I tested v11 of the patch on current master. The patch applied cleanly, and I was able to build and install PostgreSQL without any issues. I tested a few different cases, including domains with CHECK constraints, DEFAULT values, and NOT NULL constraints. In all cases, pg_get_domain_ddl() generated the expected CREATE DOMAIN statement. I also verified both the default and pretty-printed output formats, and they produced the expected results. Finally, I checked the behavior with a non-existent domain and confirmed that it returns an appropriate error.
Overall, the patch worked as expected in my testing. regards, Solai
