I have a GB PostgreSQL database dump. I need to import it into an Azure postgreSQL single server. I know the below command but I prefer the import done inside DB without command line in the hosting OS environment.
- psql -U postgres -d mydatabase -f dumpfile.sql
Is there any db sql command to do the psql -f command job? For example, the MS sql server has several ways to do that (BULK INSERT, etc.) without powershell command line. Does pgSQL have similar functions?