Skip to main content
Solved

Writing to specific schema in PostGIS database

  • November 14, 2012
  • 5 replies
  • 323 views

Forum|alt.badge.img
Morning all,

 

 

I am loading a set of shapefiles into a PostGIS database using a shapefile reader and a PostGIS writer. If I accept the default workbench created by FME the data gets written to the public schema.  Where/how can I set the schema in the writer that I actually want the data written to?  Probably a simple solution...

 

 

FME Desktop 2012 sp3 and PostgreSQL 9.1 with PostGIS 2.0

 

 

Thanks

Best answer by brendan

I can't check at the moment, but I believe in the PostGIS writer properties you set the "Database Username" to the PostGIS schema name.

 

View original
Did this help you find an answer to your question?

5 replies

Forum|alt.badge.img
  • Best Answer
  • November 14, 2012
I can't check at the moment, but I believe in the PostGIS writer properties you set the "Database Username" to the PostGIS schema name.

 


  • November 14, 2012
The answer to your question can be found in the link below;

 

http://fmepedia.safe.com/articles/Error_Unexpected_Behavior/In-the-Postgis-Postgres-reader-tables-from-a-different-schema-don-t-show-up

 

 

I have used it before and it worked.

Forum|alt.badge.img
  • Author
  • November 14, 2012
Thanks Brendan, that was it - database username should be the database schema you want to write to.

Forum|alt.badge.img
  • December 17, 2015

Hi,

Supplementing this answer with FME 2015 guidelines:

To write data in a different schema within a PostgreSQL or PostGIS database you need to type the schema name within the the PostgreSQL or the PostGIS database writer under the "General" tab and within the "Table Qualifier" form.


fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • October 9, 2018

Just had this question myself and this is how I fixed this: just add the schema<dot> in front of your table name, which can be parameterized or filled with attribute value.

schema.mytable


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings