Is it possible to create a new schema in a PostGres/PostGIS database using FME?
Thanks
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Hi @jackyd, yes, you can create a new schema with a SQL statement. e.g.
create schema my_schema
Where? depends on how you write features into tables belonging to the new schema. If you write features with a PostgreSQL/PostGIS writer, for example, you can set the statement to the "SQL Statement to Execute before Translation" parameter of the writer.
Note: The execution will fail if the schema exists in the database already, but the error can be ignored if you add a hyphen to the head of the statement, like this.
Hi @jackyd, yes, you can create a new schema with a SQL statement. e.g.
create schema my_schema
Where? depends on how you write features into tables belonging to the new schema. If you write features with a PostgreSQL/PostGIS writer, for example, you can set the statement to the "SQL Statement to Execute before Translation" parameter of the writer.
Note: The execution will fail if the schema exists in the database already, but the error can be ignored if you add a hyphen to the head of the statement, like this.