File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,11 +98,10 @@ const restoreBackupFromRestoreStream = (dumpRestoreStream) => {
9898 [
9999 '--no-password' ,
100100 '--no-psqlrc' ,
101- '--quiet' ,
102- '--echo-errors' ,
101+ '--echo-all' ,
103102 ] ,
104103 {
105- stdio : [ 'pipe' , 'ignore ' , 'inherit' ] ,
104+ stdio : [ 'pipe' , 'inherit ' , 'inherit' ] ,
106105 } ,
107106 ) ;
108107
@@ -140,6 +139,8 @@ const restoreBackupFromRestoreStream = (dumpRestoreStream) => {
140139 -- Objects (such as an extension) not owned by the connecting user (eg placed there by a DB superuser without chowning)
141140 -- will not be dropped, which is going to be a problem when that object is included in the dump.
142141 DROP OWNED BY CURRENT_USER CASCADE;
142+
143+ CREATE SCHEMA IF NOT EXISTS public;
143144 ` ) ;
144145 const postamble = Readable . from ( `
145146 COMMIT;
You can’t perform that action at this time.
0 commit comments