PostGIS Error if Access Not Granted to Geometry Table

Liz Sanderson
Liz Sanderson
  • Updated

Consideration

An error message similar to one of the examples below is received:

"Error executing SQL command ('select * from "table_name" where false limit 0'): 'ERROR:  current transaction is aborted, commands ignored until end of transaction block'" 
"Error executing SQL command ('SELECT f_table_name, f_geometry_column, coord_dimension, srid, type FROM geometry_columns WHERE f_table_schema = 'schema_name' AND f_table_name = 'table_name''): 'ERROR:  permission denied for relation geometry_columns'
Writer failed in write() call 
Writer failed in write() call 
f_21(CreationFactory): Writer failed in write() call" 

Why This Happens

Users may not have permission to access the reserved tables that PostGIS requires, specifically the view geometry_columns. The PostGIS writer expects to be able to read the geometry_columns metadata view to determine how to write the spatial data.

How to Resolve This

Issue the following statement in the PostGIS database:

GRANT SELECT ON public.geography_columns TO PUBLIC ;

Was this article helpful?

We're sorry to hear that.

Please tell us why.

As of January 14th, 2026, comments on knowledge base articles have been closed. To make sure questions don’t get missed and to enable more community support, we’ve moved discussions to the FME Community. If you have a question or a comment about this article, please create a new post or create a support ticket.