문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top