Skip to main content
Solved

why I can not create a new table to Postgis


esaka
Participant
Forum|alt.badge.img
  • Participant

Hi,

When I would like to insert a new table to Postgis, I am getting below error. For existing table is ok. Its means that, it is inserting a new records, but if does not exist table, it does not allow to create.

Best answer by takashi

Hi @esaka, most likely the error message "Schema 'gis' is not a valid schemaname" indicates that the schema 'gis' within which you are going to create a new table does not exist in the destination database. Firstly check if the schema exists, with pgAdmin. The pgAdmin is a convenient tool to manage PostgreSQL/PostGIS databases.

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

2 replies

takashi
Influencer
  • Best Answer
  • May 21, 2018

Hi @esaka, most likely the error message "Schema 'gis' is not a valid schemaname" indicates that the schema 'gis' within which you are going to create a new table does not exist in the destination database. Firstly check if the schema exists, with pgAdmin. The pgAdmin is a convenient tool to manage PostgreSQL/PostGIS databases.


esaka
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 21, 2018
takashi wrote:

Hi @esaka, most likely the error message "Schema 'gis' is not a valid schemaname" indicates that the schema 'gis' within which you are going to create a new table does not exist in the destination database. Firstly check if the schema exists, with pgAdmin. The pgAdmin is a convenient tool to manage PostgreSQL/PostGIS databases.

Thankyou Tahashi,

 

There was no schema as "gis". Actually, gis was my database name.

 

I was trying to insert to "public" shame. However, I created a new schema as "gis" and it did.

 

Thank you again.

 

 


Reply


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