Reputation: 818
I want sql script of postgres 9 database schema which is not on local server. I tried pg_dump command on sql editor of pgAdmin and its not working there. I m not sure where to run that command. Please assist me with the same.... Thanks..
Upvotes: 28
Views: 61620
Reputation: 7683
You can also use pgAdmin tool to generate or take plain text Database Backup. You can generate plain text backup for data or schema only.
I have shared few screen shots, please visit this blog for more details.
Upvotes: 2
Reputation: 424973
pg_dump
is a command line utility; it isn't SQL, so it won't work in pgAdmin or anywhere else that executes SQL.
pgAdmin
however does have a facility to do what you want:
Backup
from the pop-up menuPlain
Only schema
Upvotes: 54