Search code examples
postgresqlpsqlbitnami

No such file or directory error when executing sql file from \i command in PosqtgreSQL


I am currently working on PostgreSQL (Bitnami) docker container an I am unable to execute a db script which is in .sql format from \i file-path command in psql. I searched many times but I could not find an answer for this. The PostgreSQL version is 10.12.0.


Solution

  • The .sql file you want to \i include must be in the Docker container, not on your machine.