/* Get column info (index requires additional checks) */
if(tableinfo.relkind=='i')
strcpy(buf,"SELECT\n CASE i.indproc WHEN ('-'::regproc) THEN a.attname\n ELSE SUBSTR(pg_get_indexdef(attrelid),\n POSITION('(' in pg_get_indexdef(attrelid)))\n END, ");