Index: providers/postgres/utils.c
===================================================================
--- providers/postgres/utils.c  (revision 3066)
+++ providers/postgres/utils.c  (working copy)
@@ -442,7 +442,7 @@
         gda_column_set_table (field_attrs, table_name);

         if (table_name) {
-                ispk = check_constraint (cnc, pg_res, table_name,  col, 'P');
+                ispk = check_constraint (cnc, pg_res, table_name,  col, 'p');
                 isuk = check_constraint (cnc, pg_res, table_name,  col, 'u');
         }


