This issue occurs when a user tries to insert a subquery result into a table and the subquery includes a pg_relation_size() function. A sample query is shown below:
create table test2 as select pg_relation_size(ta.schemaname || '."' ||ta.tablename || '" ') from pg_tables;
Here is the explanation from the R&D team:
Product Version: 5.27
We can try to workaround this issue by using the copy tool: