Re: confused by int2vector typdelim

2023-05-24 Thread Tom Lane
jian he writes: > should I expect the typdelim be a white space? Since '1 2'::int2vector > works, '1,2'::int2vector does not work. typdelim applies to the type's associated array type, that is int2vector[]. regression=# select '{1 2,3 4 5}'::int2vector[]; int2vector - {"1

confused by int2vector typdelim

2023-05-24 Thread jian he
hi. select pt.typtype , pt.typcategory , pt.typdelim , pt.typelem , pt1.typname as elem_type ,pt.typsubscript ,pt.typname frompg_type pt join pg_type pt1 on pt.typelem = pt1.oid where pt.typname = 'int2vector'; returns typtype | typ