8000 Allow PGSERVICE env var to be used with pg_restore command · postgres/postgres@0c25911 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c25911

Browse files
committed
Allow PGSERVICE env var to be used with pg_restore command
1 parent 5c4eb91 commit 0c25911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ main(int argc, char **argv)
300300
}
301301

302302
/* Should get at most one of -d and -f, else user is confused */
303-
if (opts->dbname)
303+
if (opts->dbname || getenv("PGSERVICE"))
304304
{
305305
if (opts->filename)
306306
{

0 commit comments

Comments
 (0)
0