Y
Y
Yapparov_Ilyas2017-10-22 22:11:25
PostgreSQL
Yapparov_Ilyas, 2017-10-22 22:11:25

How to import database in postgresql?

Good evening! I am a total database newbie and decided to learn PostgreSQL. Started with a book from their website. It contains a link to the tutorial.
59ecebb80fec3599678223.png
I put it on Windows XP under psql 9.6, no problems. But on Windows 7 with psql 10 nothing comes out. The command \i demo_small.sql
loads the database, everything seems to be in order, but if you switch to another database and return to the loaded one, it turns out that there is absolutely nothing in it, "no relations found" when you try to look at the list of tables. The same with the
team .
psql demo < demo_small.sql -U postgres
Perhaps the answer is on the surface and I'm just inattentive, but I've been struggling with this all day.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2017-10-22
@dimonchik2013

indicate the full paths, both to the postgre and to the imported
one, or fiddle with adding to PATH xs which, it seems, Postgres also has its own PATH

B
bruxo, 2019-10-02
@bruxo

https://stackoverflow.com/questions/6842393/import...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question