所以我有芬兰语和瑞典语名镇的一个简单的表: CREATE TABLE town (id SERIAL PRIMARY KEY, name_fi TEXT, name_sv TEXT);
,我需要检查是否有特定的城镇存在。这是相当容易: cursor.execute(
"SELECT EXISTS (SELECT 1 FROM town WHERE name_fi=%s OR name_
我存取阵列: PG_GETARG_ARRAYTYPE_P(0)
/* Then I deconstruct it into C array */
deconstruct_array()
/* Later I iterate thru values and attempt to access columns of my composite type */
GetAttributeByName