Re: Passing relation metadata to Exec routine

2022-12-27 Thread Nikita Malakhov
Hi Tom! Thank you for your feedback. I agree that for complex columns created with joins, grouping, etc considering properties of the base table does not make sense at all. But for CREATE TABLE LIKE and simple columns that are inherited from some existing relations - it does, if we consider some

Re: Passing relation metadata to Exec routine

2022-12-26 Thread Tom Lane
Nikita Malakhov writes: > While working on Pluggable TOAST [1] we found out that creation > of new relation with CREATE TABLE AS... or CREATE TABLE LIKE - > method > static ObjectAddress create_ctas_internal(List *attrList, IntoClause *into) > does not receive any metadata from columns or tables

Passing relation metadata to Exec routine

2022-12-26 Thread Nikita Malakhov
Hi hackers! While working on Pluggable TOAST [1] we found out that creation of new relation with CREATE TABLE AS... or CREATE TABLE LIKE - method static ObjectAddress create_ctas_internal(List *attrList, IntoClause *into) does not receive any metadata from columns or tables used in query (if