Don't allow CREATE TABLE AS to create a column with invalid collation

Peter Eisentraut <peter_e@gmx.net>

Commit: b9cff97fdf486eca7e563a9696a7391048814d0f
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-03-04T21:42:07Z
Releases: 9.1.0
Don't allow CREATE TABLE AS to create a column with invalid collation

It is possible that an expression ends up with a collatable type but
without a collation.  CREATE TABLE AS could then create a table based
on that.  But such a column cannot be dumped with valid SQL syntax, so
we disallow creating such a column.

per test report from Noah Misch

Files