Skip to content

Commit afffcc0

Browse files
authored
Fixes: create public schema and (#1829)
print all messages from psql
1 parent cf5d254 commit afffcc0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/util/backup.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)