0

Here i have sql server query to take backup of database using stored procedure as shown below:

Example:

 CREATE procedure DISKBACKUP  @location_dump varchar(255), @databasename varchar(255)                 
   AS                  
  backup Database @databasename to disk=@location_dump          
  ...

Can I do the same in PostgreSQL?

1
  • No, but you can use pg_dump or simple GUI tool PostgreSQL-backup (postgresql-backup.com) to make PostgreSQL backups Commented Sep 7, 2016 at 10:15

1 Answer 1

2

No, it is not.

pg_dump must be used.

It's often requested, but it's not supported at present, and nobody who requests it ever goes on to do any work to actually make it happen.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.