hi Traian! > In the second example, your FID is called "gid" and so you will need to set the PGSQL_OGR_FID variable to gid to make selection work. ok so how can i set PGSQL_OGR_FID variable to gid? is there any example? maciek