silently ignored, allowing one to write bizarre things like
DECLARE x setof int;
in plpgsql. This has misled at least one novice into thinking that
plpgsql variables could be sets ...
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.71 2004/08/29 05:06:44 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_type.c,v 1.72 2004/12/15 20:15:17 tgl Exp $
*
*-------------------------------------------------------------------------
*/
if (typename == NULL ||
!IsA(typename, TypeName))
goto fail;
+ if (typename->setof)
+ goto fail;
*type_id = typenameTypeId(typename);
*typmod = typename->typmod;